Ad

Socket Io Broadcast Stop Working After 2 Attempt

- 1 answer

socket.broadcast.to("room1").emit('remove_card_success', "Hiii");

works only 2 times, after that it is calling Adapter.prototype.del from socket Lib and nothing emitted.

Adapter.prototype.del removed one socket connection | socket id

What should be next step to emit data successfully ??

Ad

Answer

check if you have leave Room | channel somewhere in your code like,

socket.leave(currentRoomId);
Ad
source: stackoverflow.com
Ad