How can I send larger messages over WebSocket?

前端 未结 3 1214
温柔的废话
温柔的废话 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条回答
  •  猫巷女王i
    2021-01-05 08:10

    I know for a fact that you can send messages larger than 126 characters,
    I am able to send data over protobuf that contains strings that themselves contain 126 characters. http://www.websocket.org/echo.html
    If you look at this website you can test out your messages. (Note this does not use fragments)

提交回复
热议问题