Chat with rooms

Created live chat with sockets as to Teodors tutorial, this works, except sometimes the message is emitted twice.

Any ideas why?

My application requires the ability for members who are part of separate ‘partnerships’ to communicate only with members with the same partnership_id.
This would require separate rooms to be created which could be named using the partner_id

I have added the parameter ‘partner_id’ to the chat_message socket but don’t know how the client joins the room associated with his associated partner_id.

Can anyone help?
Thanks for reading

Community Page
Last updated: