simpledali.websocketdali
Module Contents
Classes
A DataLink over a websocket. |
API
- class simpledali.websocketdali.WebSocketDataLink(uri, packet_size=-1, dlproto=DLPROTO_1_0, verbose=False, ping_interval=None)
Bases:
simpledali.abstractdali.DataLinkA DataLink over a websocket.
Websockets must first connect as HTTP before upgrading to web socket.
This uses a port number often specified in ringservers’s conf as a ListenPort as long as it includes all or HTTP as the type.
Initialization
init DataLink. Packet_size and dlproto can be set, or can be acquired from the server via the capabilities response within id()
- async createDaliConnection()
- async send(header, data)
- async parseResponse()
- isClosed()
- async close()
- _force_close()
Unset websocket and reset mode. This should be not be called, prefer close() as it does the websocket close handshake.