Description Usage Arguments Details Value Author(s) Examples
Write data to all websocket clients associated with one websocket server.
1 | websocket_broadcast(DATA, server)
|
DATA |
A character string or RAW vector to broadcast. |
server |
A websocket server environment returned by |
The HTML 5 Websocket API emulates a connection-oriented socket without
a true broadcast capability. The websocket_broadcast
function
emulates a broadcast by sending the DATA payload to each connected client
in a loop.
The number of bytes sent is returned when successful (otherwise an error is thrown).
B. W. Lewis <blewis@illposed.net>
1 | ##
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.