![]() |
libgpac
Documentation of the core library of GPAC
|
RMTHandler object handling the callbacks for rmtws events. More...
Public Member Functions | |
on_new_client (self, RMTClient client) | |
called when a new client connects to the websocket | |
on_client_close (self, RMTClient client) | |
called when a client disconnects from the websocket | |
on_client_data (self, RMTClient client, data) | |
called when a client receives data on its websocket | |
RMTHandler object handling the callbacks for rmtws events.
to be passed to set_rmt_handler()
python.libgpac.libgpac.RMTHandler.on_new_client | ( | self, | |
RMTClient | client | ||
) |
called when a new client connects to the websocket
client | an object of type RMTClient representing the new client |
python.libgpac.libgpac.RMTHandler.on_client_close | ( | self, | |
RMTClient | client | ||
) |
called when a client disconnects from the websocket
client | an object of type RMTClient representing the client |
python.libgpac.libgpac.RMTHandler.on_client_data | ( | self, | |
RMTClient | client, | ||
data | |||
) |
called when a client receives data on its websocket
client | an object of type RMTClient representing the client |
data | the received data, can be either str or bytes depending on the exchanged data |