Table Of Contents

Previous topic

Base

Next topic

Server

This Page

Client

The classes autobahn.websocket.WebSocketClientProtocol and autobahn.websocket.WebSocketClientFactory are the base classes you derive from to implement WebSocket clients.

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.

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.