Only connect to chat upon authenticating
- Mar 10, 2019
-
-
slice authored
To avoid duplication of the connection, the chat socket is destroyed upon logging out.
-
slice authored
Closes #403. Previously, a socket to the chat channel would be opened if chat is enabled, regardless if the user is logged in or not. This patch only allows a connection to be opened if a wsToken (websocket token) is present, which prevents websocket errors from unauthenticated users.
-