Files
deb-python-autobahn/doc/websocketbase.rst
Tobias Oberstein cd4ea1eac9 polish docs
2014-01-01 16:12:55 +01:00

2.6 KiB

WebSocket

The classes

  • autobahn.websocket.protocol.WebSocketProtocol
  • autobahn.websocket.protocol.WebSocketFactory

implement the core WebSocket protocol.

Though you will use methods and override callbacks from above classes, you implement your WebSocket clients and servers by deriving from the following classes.

Twisted-based clients and servers:

  • autobahn.twisted.websocket.WebSocketClientProtocol
  • autobahn.twisted.websocket.WebSocketClientFactory
  • autobahn.twisted.websocket.WebSocketServerProtocol
  • autobahn.twisted.websocket.WebSocketServerFactory

Asyncio-based clients and servers:

  • autobahn.asyncio.websocket.WebSocketClientProtocol
  • autobahn.asyncio.websocket.WebSocketClientFactory
  • autobahn.asyncio.websocket.WebSocketServerProtocol
  • autobahn.asyncio.websocket.WebSocketServerFactory

WebSocket Protocol

Both WebSocket client and server protocols share the following functionality.

autobahn.websocket.protocol.WebSocketProtocol

WebSocket Factory

Both WebSocket client and server factories share the following functionality.

autobahn.websocket.protocol.WebSocketFactory

autobahn.websocket.protocol.PreparedMessage