simpledali.websocketdali

Module Contents

Classes

WebSocketDataLink

A DataLink over a websocket.

API

Bases: simpledali.abstractdali.DataLink

A 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.