Saturday, 20 May 2017

SocketIO "NotRegistered" message when using io.sockets.emit

Recently an application I built using SocketIO stopping sending messages to clients out of the blue, and the message NotRegistered appears in the console whenever a message is sent. Everything else works fine, and the server has no trouble receiving requests.

One quick thing to note, the only clients having issues are ones on mobile devices (e.g iOS/Android) using the respective native mobile socket.io library.

io.sockets.emit("newMessage", {removed: removed, room: room, userID: removed, name: removed, message: messageContent});



via Jordan Osterberg

No comments:

Post a Comment