lib/faye/engines/memory.rb in faye-0.8.11 vs lib/faye/engines/memory.rb in faye-1.0.0
- old
+ new
@@ -35,9 +35,10 @@
remove_timeout(client_id)
@namespace.release(client_id)
@messages.delete(client_id)
@server.debug 'Destroyed client ?', client_id
@server.trigger(:disconnect, client_id)
+ @server.trigger(:close, client_id)
callback.call if callback
end
def client_exists(client_id, &callback)
callback.call(@namespace.exists?(client_id))