arduinoWebSockets
arduinoWebSockets copied to clipboard
how to send a BINARY through socketio?
like ArduinoWebSockets, sendBinary(const char* a, len)?
mainly using in esp32-cam, send image binary data
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(), ...)
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