How can I send larger messages over WebSocket?

前端 未结 3 1219
温柔的废话
温柔的废话 2021-01-05 08:04

I am developing a WebSocket server with C# and I noticed that all the messages that coming from the browser (Chrome in that case) using the send() method are 126 chars lengt

3条回答
  •  清歌不尽
    2021-01-05 08:23

    WebSocket messages can be of any size. However, large messages are usually transmitted in multiple parts (fragments) to avoid head-of-line blocking. See the WebSockets I-D for details.

提交回复
热议问题