Method: Faye::Engine::Proxy#connection

Defined in:
lib/faye/engines/proxy.rb

#connection(client_id, create) ⇒ Object



69
70
71
72
73
74
75
# File 'lib/faye/engines/proxy.rb', line 69

def connection(client_id, create)
  conn = @connections[client_id]
  return conn if conn or not create
  @connections[client_id] = Connection.new(self, client_id)
  trigger('connection:open', client_id)
  @connections[client_id]
end