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
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)
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.
That is not correct what you said DTB. Sending should definitely support more than 126 chars. It is a matter of properly formatting your output. If we were limited to 126 chars there would be no signalling servers for WebRTC. I will code this send message function and post it on here when I finish.