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

Gergely Lekli created an issue. See original summary.

glekli’s picture

Status: Active » Needs review
StatusFileSize
new2.2 KB
glekli’s picture

Updates are also needed in the server app. I have put in a PR:
https://github.com/beejeebus/drupal-nodejs/pull/13

Anonymous’s picture

looks good.

how was this hindering chatroom?

glekli’s picture

Status: Needs review » Fixed

Thanks!
I have put in an issue to describe what this was needed for:
https://www.drupal.org/node/2656376

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.