Method: NATS#close
- Defined in:
- lib/nats/client.rb
#close ⇒ Object
Close the connection to the server.
767 768 769 770 771 772 773 |
# File 'lib/nats/client.rb', line 767 def close @closing = true cancel_ping_timer cancel_reconnect_timer close_connection_after_writing if connected? process_disconnect if reconnecting? end |