Thinking out loud:
One approach could be chats per person:
Another Could Be Per Thread:
Or maybe none of the above.
Per thread, per forum, per user, or per tag, this will need to scale.
Let's keep dreaming about the possibilities and thinking out loud.
Then there are architectural questions like
Socket.io versus
PubNub.... decisions... decisions ...