go-socket.io icon indicating copy to clipboard operation
go-socket.io copied to clipboard

How to receive a packet with binary attachments

Open Ekenzy-101 opened this issue 2 years ago • 0 comments

I am sending a packet using Websockets like this

socket.send('452-["binary",{"_placeholder":true,"num":0},{"_placeholder":true,"num":1}]');
socket.send(Uint8Array.from([1, 2, 3]));
socket.send(Uint8Array.from([4, 5, 6]));

How will the handler function be in golang?

Ekenzy-101 avatar Aug 18 '22 13:08 Ekenzy-101