Assign topics: [] to socket when it connects
then every time a client joins a topic, update the topics with the topic name
And in consumer:
If the client already is joined to a certain topic, we don't attempt to join again (topic in socket.topics)
If not joined, we them join the socket to the topic
Assign topics: [] to socket when it connects
then every time a client joins a topic, update the topics with the topic name
And in consumer:
If the client already is joined to a certain topic, we don't attempt to join again (topic in socket.topics)
If not joined, we them join the socket to the topic