probil / vue-socket.io-extended

:v::zap: Socket.io bindings for Vue.js and Vuex (inspired by Vue-Socket.io)
MIT License
628 stars 38 forks source link

Client can emit events but other listeners cannot receive it while the sender can receive. (Typescript) #543

Closed oldner closed 2 years ago

oldner commented 2 years ago

Hi

I am having an issue while using vue-socket.io-extended. I can emit perfectly data from client to server. I can see the data in server. But cannot receive back. $socket.connected is true BTW. Thanks!

unknown1 unknown22 unknown2 Screenshot_4

Update: What I realised is, it emits the data only the event senders when I change the socket to io (socket.in() part) on server side. So emit is working but despite rooms name are the same, nothing happens on other listener side.

FIXED: Well, obviously the client confused somehow. When I try to emit from other listener to all, then it started to work.