lib/plezi/server/websocket.rb in plezi-0.8.2 vs lib/plezi/server/websocket.rb in plezi-0.8.3

- old
+ new

@@ -55,10 +55,10 @@ # a proc object that calls #on_disconnect for the handler passed. ON_DISCONNECT_PROC = Proc.new {|handler| handler.on_disconnect} # called when a disconnect is fired # (socket was disconnected / connection should be disconnected / shutdown / socket error) def on_disconnect - Plezi.log_raw "#{@request[:client_ip]} [#{Time.now.utc}] - #{@connection.object_id} Websocket disconnected.\n" + # Plezi.log_raw "#{@request[:client_ip]} [#{Time.now.utc}] - #{@connection.object_id} Websocket disconnected.\n" Plezi::EventMachine.queue [@connection.handler], ON_DISCONNECT_PROC if @connection.handler.methods.include?(:on_disconnect) end ######## # Protocol Specific Helpers \ No newline at end of file