back soft

مطالب مرتبط با «spring websocket message sending operations» در back soft | نویسنده: استخدام کار

Websocket messages -

Vote count: -1 For a real-time multiplayer game, the server is sending binary messages to the client with Websocket. The first byte (uint8) of a message would be the "packet ID". Example: packet 1 to "update entity": x, y, score, name in the next bytes. But, to optimize the bandwidth, I would like to send only values that change between 2 frames. Example (all values changed): packet 2 to "update entity position": x, y packet 3 to "update entity score": score packet 4 to "update entity name": name My question is: is sending a lot of messages (packet 2, 3, 4) the same than sending 1 message (1 packet) not divided, in term of size (without considering the additional "packet ID" byte, negligible...

ادامه مطلب

برچسب‌های مرتبط

websocket messages | websocket messages per second | websocket lost messages | parsing websocket messages | websocket binary messages | websocket control messages | websocket error messages | spring websocket message sending operations | websocket past messages | websocket view messages