lib/aggro/client.rb in aggro-0.0.3 vs lib/aggro/client.rb in aggro-0.0.4
- old
+ new
@@ -3,9 +3,13 @@
class Client
def initialize(endpoint)
@transport_client = Aggro.transport.client(endpoint)
end
+ def disconnect!
+ @transport_client.close_socket
+ end
+
def post(message)
MessageParser.parse @transport_client.post message
end
end
end