arduinoWebSockets icon indicating copy to clipboard operation
arduinoWebSockets copied to clipboard

how to send a BINARY through socketio?

Open googidaddy opened this issue 4 years ago • 7 comments

like ArduinoWebSockets, sendBinary(const char* a, len)?

googidaddy avatar Oct 15 '21 01:10 googidaddy

mainly using in esp32-cam, send image binary data

googidaddy avatar Oct 15 '21 01:10 googidaddy

I don't know how to do it either. I can't find any description of when to use which type of send (.send(), .sendBIN(), .sendEVENT(), ...)

probstn avatar Jun 10 '22 12:06 probstn

sendBIN is used to send binary data (the other side needs to be able to handle binary)

https://github.com/Links2004/arduinoWebSockets/blob/5881a99a300672a7f6de61de76ba68f10a69ae96/src/WebSocketsClient.h#L87-L88

Links2004 avatar Jun 10 '22 12:06 Links2004