![]() |
libgpac
Documentation of the core library of GPAC
|
import"core.idl";
Public Member Functions | |
void | send (data) |
Data Fields | |
optional attribute function | on_data |
optional attribute function | on_close |
readonly attribute string | peer_address |
Object representing a monitoring websocket client
will be passed to the session rmt_on_new_client callback
void JS_RMTClient::send | ( | data | ) |
sends data to the client on the websocket
data | the data to send, can be either of type string (for utf8 data) or arraybuffer (for binary data) |
optional attribute function JS_RMTClient::on_data |
a callback called when the client receives data
the function shall be of type function(data) where data will be either of type string (for utf8 data) or arraybuffer (for binary data)
optional attribute function JS_RMTClient::on_close |
a callback called when the client disconnects or is deleted
readonly attribute string JS_RMTClient::peer_address |
a string of format ip:port representing the client