0
最近,我使用SocketIO停止向客戶端發送消息時建立了一個應用程序,並且消息NotRegistered
在消息發送時出現在控制檯中。其他一切正常,服務器沒有問題接收請求。使用io.sockets.emit時的SocketIO「NotRegistered」消息
有一點需要注意的是,唯一有問題的客戶端是使用相應的本地移動socket.io庫的移動設備(例如iOS/Android)。
io.sockets.emit("newMessage", {removed: removed, room: room, userID: removed, name: removed, message: messageContent});
您看到的確切完整的信息是什麼? – jfriend00
@ jfriend00這是完整的消息 –
你在服務器上還是在你的Android客戶端上看到消息?你知道你的客戶是否使用webSocket或xhrpolling作爲交通工具嗎? – jfriend00