create connection row on login
This commit is contained in:
parent
2533c6732d
commit
cd723ac964
|
|
@ -443,6 +443,12 @@ module JamWebsockets
|
|||
login_ack = @message_factory.login_ack(remote_ip)
|
||||
send_to_client(client, login_ack)
|
||||
|
||||
# log this connection in the database
|
||||
connection = Connection.new()
|
||||
connection.user_id = user.id
|
||||
connection.client_id = client.client_id
|
||||
connection.save
|
||||
|
||||
# remove from pending_queue
|
||||
@semaphore.synchronize do
|
||||
@pending_clients.delete(client)
|
||||
|
|
@ -535,7 +541,7 @@ module JamWebsockets
|
|||
else
|
||||
raise SessionError, 'no login data was found in Login message'
|
||||
end
|
||||
|
||||
:properties => { :headers => { "client_id" => client.client_id } } )
|
||||
end
|
||||
|
||||
def access_jam_session?(jam_session_id, user)
|
||||
|
|
|
|||
Loading…
Reference in New Issue