How can I send and receive WebSocket messages on the server side?

后端 未结 11 1899
轻奢々
轻奢々 2020-11-22 06:21
  • How can I send and receive messages on the server side using WebSocket, as per the protocol?

  • Why do I get seemingly random bytes at the server when

11条回答
  •  礼貌的吻别
    2020-11-22 06:32

    C++ Implementation (not by me) here. Note that when your bytes are over 65535, you need to shift with a long value as shown here.

提交回复
热议问题