How to emit to a room
Jasper-bot opened this issue · 5 comments
Jasper-bot commented
How do you emit an event to a room?
Using this.socket.to("a").emit("send-room-a");
it gives an error Property 'to' does not exist on type 'WrappedSocket'.
ferraridk commented
I have somewhat the same error with Emit
robmanganelly commented
Room is not ye implemented as long as today,
ryzhovalex commented
Entering rooms functionality should be implemented at the server-side. E.g. you can have event join
which you basically emit at the client side and listen for it at the server side (and then use the appropriate method to add user to a room according to socket.io framework you have chosen there).