lib/websocket-client-simple/client.rb in websocket-client-simple-0.0.6 vs lib/websocket-client-simple/client.rb in websocket-client-simple-0.0.7

- old
+ new

@@ -60,9 +60,10 @@ end def close return if @closed @closed = true + send nil, :type => :close @socket.close if @socket Thread.kill @thread if @thread @socket = nil emit :__close end