Closed iiegor closed 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.
Almost fixed with e9e3640aedd1000e8cad3617cf953c8e1b423edb, see the TODO https://github.com/iiegor/xat-server/blob/e9e3640aedd1000e8cad3617cf953c8e1b423edb/src/workers/authentication.coffee#L12
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.