fkie_mas_pylib.websocket.client module

class fkie_mas_pylib.websocket.client.WebSocketClient(port: int)

Bases: object

Helper class to communicate with daemon’s websocket server.

handle_callback(id, callback: Callable[[Any], str | object], args=[]) None
publish(uri: str, message: str, latched=False) None
recv_handler() None
register(uri: str, callback: Callable[[int], None]) None
shutdown() None
subscribe(uri: str, callback: Callable[[Any], None]) None