pycsamt.iot.protocols.websocket#

WebSocket telemetry transport (optional dependency: websocket-client).

WebSocketTelemetryClient sends JSON frames to a ws:// or wss:// endpoint and receives them back. The websocket-client package is imported lazily.

Classes

WebSocketTelemetryClient([endpoint, ...])

Send/receive telemetry over a WebSocket connection.

class pycsamt.iot.protocols.websocket.WebSocketTelemetryClient(endpoint=None, *, dry_run=False, timeout=10.0, **options)[source]#

Bases: BaseTelemetryClient

Send/receive telemetry over a WebSocket connection.

Parameters:
protocol: IoTProtocol = 'websocket'#