Merge pull request #1523 from ether/store-sessions-in-db

Store sessions in db
This commit is contained in:
John McLear 2013-02-26 18:03:54 -08:00
commit 18b6cf1534
8 changed files with 111 additions and 16 deletions

View file

@ -928,6 +928,8 @@ function handleClientReady(client, message)
//If this is a reconnect, we don't have to send the client the ClientVars again
if(message.reconnect == true)
{
//Join the pad and start receiving updates
client.join(padIds.padId);
//Save the revision in sessioninfos, we take the revision from the info the client send to us
sessioninfos[client.id].rev = message.client_rev;
}