1.4 KiB
WebSocket Clients
Introduction
The classes autobahn.websocket.WebSocketClientProtocol and autobahn.websocket.WebSocketClientFactory are the
base classes you derive from to implement WebSockets clients.
Client Protocol
Usually, you implement your WebSocket client by creating a protocol
that derives from autobahn.websocket.WebSocketClientProtocol.
This class in turn derives from autobahn.websocket.WebSocketProtocol, which is where
you find all the callbacks and methods.
autobahn.websocket.WebSocketClientProtocol
Client Factory
To create your actual client, you need a factory with the protocol attribute set to your protocol.
You may either use autobahn.websocket.WebSocketClientFactory directly
and without modification or you can derive from that class when you want
to extend it's behavior i.e. with state that is available for all client
connections.
autobahn.websocket.WebSocketClientFactory