We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In AsyncFsWebServer.h you have the following to allow a websocket broadcast of a text message:
/* * Broadcast a websocket message to all clients connected */ void wsBroadcast(const char * buffer) { m_ws->textAll(buffer); }
I've added the following below this to allow broadcasts of an array of bytes, which I find quite useful:
/* * Broadcast a binary websocket message to all clients connected */ void wsBroadcastBinary(uint8_t * message, size_t len) { m_ws->binaryAll(message, len); }
The text was updated successfully, but these errors were encountered:
If you do so augment your library, I've written an example you could consider adding.
https://forum.arduino.cc/t/binary-data-over-websockets-with-the-asyncespfswebserver-library/1258142/3
Sorry, something went wrong.
No branches or pull requests
In AsyncFsWebServer.h you have the following to allow a websocket broadcast of a text message:
I've added the following below this to allow broadcasts of an array of bytes, which I find quite useful:
The text was updated successfully, but these errors were encountered: