lib/plezi/server/websocket_client.rb in plezi-0.8.5 vs lib/plezi/server/websocket_client.rb in plezi-0.8.6
- old
+ new
@@ -48,9 +48,10 @@
#disconnects the Websocket.
def disconnect
@response.close if @response
end
+ alias :close :disconnect
# sends data through the socket. a shortcut for ws_client.response <<
def << data
@response << data
end
\ No newline at end of file