When the client connects, it sends the content channel tokens to the server along with the authentication request, and the user will be added to the corresponding channels after successful authentication. However, after the authentication is done, there is no way to add the client to further channels without reconnecting. In addition, it would be useful in some cases to store custom data with the channel tokens.
These functionalities would be necessary to handle connections properly in chatroom, and hopefully will be valuable to others. I have made a patch for these refinements.
Comments
Comment #2
glekli commentedComment #3
glekli commentedUpdates are also needed in the server app. I have put in a PR:
https://github.com/beejeebus/drupal-nodejs/pull/13
Comment #4
Anonymous (not verified) commentedlooks good.
how was this hindering chatroom?
Comment #5
glekli commentedThanks!
I have put in an issue to describe what this was needed for:
https://www.drupal.org/node/2656376