You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a multi process socket service that is backed by a message based queue, so I can't guarantee which socket instance gets the messages. Naturally, socket.io-redis is what I am needing so I can perform emits across any instance so it can reach the client. This part works. What I am having problems with is telling socket clients to join or leave rooms across instances, is this possible?
seneca.add({role:'sockets',cmd:'leaveRoom',accountId:'*',podId:'*'},function(args,done){returnseneca.actAsync({role: 'session',cmd: 'read',key: args.accountId}).then((session)=>{if(session&&session.socketId){// I need to tell the socket with id session.socketId to leave a certain room}}).catch(seneca.log.error).finally(()=>{done();});});
The text was updated successfully, but these errors were encountered:
We have a multi process socket service that is backed by a message based queue, so I can't guarantee which socket instance gets the messages. Naturally, socket.io-redis is what I am needing so I can perform emits across any instance so it can reach the client. This part works. What I am having problems with is telling socket clients to join or leave rooms across instances, is this possible?
The text was updated successfully, but these errors were encountered: