iiegor / xat-server

A Node.js private server of xat.com
8 stars 2 forks source link

@user.authenticated not working correctly. #1

Closed iiegor closed 9 years ago

iiegor commented 9 years ago

An user can stay in a room with two clients opened at the same time. To avoid this we check at the authentication.coffee file if the user is authenticated and if it is we close the socket, if not, continue with the auth process.

It works but there are a few bugs.

iiegor commented 9 years ago

Almost fixed with e9e3640aedd1000e8cad3617cf953c8e1b423edb, see the TODO https://github.com/iiegor/xat-server/blob/e9e3640aedd1000e8cad3617cf953c8e1b423edb/src/workers/authentication.coffee#L12