socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

emit not working inside a loop

Open macray125 opened this issue 9 years ago • 2 comments

hey can you help me. the io.volatile.emit is not working inside a loop

for(j= 0; j < result.length; j++){ io.volatile.emit('notification_'+j, "notify user"); }

macray125 avatar May 16 '17 09:05 macray125

What does it means "it's not working" ? Also, just in case, if you must be sure your messages wont be dropped, use io.emit instead of io.volatile.emit

MyMomSaysIAmSpecial avatar May 17 '17 08:05 MyMomSaysIAmSpecial

Closed due to inactivity, please reopen if needed.

darrachequesne avatar Feb 19 '21 14:02 darrachequesne