I\'m building a Web socket server, however, for testing purposes, I\'d like Chrome or Firefox or any other browser to send the message fragmented so I can test my implementa
The Javascript WebSocket API does not expose this option. I recently ran into the same frustration when some more modern browsers (A Chromium derivative) was unpredictably sending fragmented WebSocket frames.
For testing I rolled my own TCP client sending pre-calculated fragmented WebSocket frames. Not ideal, but it got the job done, and AFAIK there's no alternative yet.