websocket - Does socket.io queue messages to disconnected clients? -
if client socket disconnected during middle of multiplayer game. socket.io queue events emitted server after has client disconnected?
if mean when client socket reconnected, updated events server tried emit if while disconnected.
no, need sort of data structure on server-side holds record of whatever data client needs, able update client if connect again. when user disconnects socket.io connects again, socket id never same, need sort of unique identifier can let server know client (i.e. username, userid, etc)
Comments
Post a Comment