lib/protolink/proto_socket.rb in protolink-0.2.8 vs lib/protolink/proto_socket.rb in protolink-0.2.9

- old
+ new

@@ -25,9 +25,13 @@ send_json :operation => 'ping' end end def unbind + puts "DISCONNECTED" EventMachine::cancel_timer @ping + EventMachine::add_timer(30) { + EventMachine.connect URI.parse(@connection.class.base_uri).host, 5000, ProtoSocket, @connection, @message_callback + } end end \ No newline at end of file