WebSocket connection failed while sending 10KB binary data

Hello, I'm creating a WebSocket connection to my server from the safari browser via console tab like below.

let socket = new WebSocket('wss://localhost:1200/WS_TEST?client=123&session=1234'); socket.onopen = function (event) { console.log('WebSocket connection opened:', event); };

socket.onmessage = function (event) { console.log('Received buffer', event.data); };

Once the connection established, The server sends multiple data which includes text and binary data.

When the server sends binary data more than 10KB after sending text data in the same socket, the WebSocket connection is getting failed.

EX: Frame Type(Text): "Hi" Frame Type(Binary): just binary frame of size 11KB

When the server send the binary data alone, the connection is not affected even the size is more than 100KBs

EX: Frame Type(Binary): just binary frame of size 100KB

WebSocket connection failed while sending 10KB binary data
 
 
Q