crossbar.router.protocol¶
Classes¶
Crossbar.io WAMP-over-RawSocket client factory. |
|
Crossbar.io WAMP-over-RawSocket client protocol. |
|
Crossbar.io WAMP-over-RawSocket server factory. |
|
Crossbar.io WAMP-over-RawSocket server protocol. |
|
Crossbar.io WAMP-over-WebSocket client factory. |
|
Crossbar.io WAMP-over-WebSocket client protocol. |
|
Crossbar.io WAMP-over-WebSocket server factory. |
|
Crossbar.io WAMP-over-WebSocket server protocol. |
Module Contents¶
- class WampRawSocketClientFactory(factory, config)[source]¶
Bases:
autobahn.twisted.rawsocket.WampRawSocketClientFactoryCrossbar.io WAMP-over-RawSocket client factory.
- class WampRawSocketClientProtocol[source]¶
Bases:
autobahn.twisted.rawsocket.WampRawSocketClientProtocolCrossbar.io WAMP-over-RawSocket client protocol.
- class WampRawSocketServerFactory(factory, config)[source]¶
Bases:
autobahn.twisted.rawsocket.WampRawSocketServerFactoryCrossbar.io WAMP-over-RawSocket server factory.
- class WampRawSocketServerProtocol[source]¶
Bases:
autobahn.twisted.rawsocket.WampRawSocketServerProtocolCrossbar.io WAMP-over-RawSocket server protocol.
- connectionMade()[source]¶
Called when a connection is made.
This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
- class WampWebSocketClientFactory(factory, *args, **kwargs)[source]¶
Bases:
autobahn.twisted.websocket.WampWebSocketClientFactoryCrossbar.io WAMP-over-WebSocket client factory.
- buildProtocol(addr)[source]¶
Create an instance of a subclass of Protocol.
The returned instance will handle input on an incoming server connection, and an attribute “factory” pointing to the creating factory.
Alternatively, L{None} may be returned to immediately close the new connection.
Override this method to alter how Protocol instances get created.
@param addr: an object implementing L{IAddress}
- protocol[source]¶
The protocol to be spoken. Must be derived from
autobahn.websocket.protocol.WebSocketClientProtocol.
- class WampWebSocketClientProtocol[source]¶
Bases:
autobahn.twisted.websocket.WampWebSocketClientProtocolCrossbar.io WAMP-over-WebSocket client protocol.
- class WampWebSocketServerFactory(factory, cbdir, config, templates)[source]¶
Bases:
autobahn.twisted.websocket.WampWebSocketServerFactoryCrossbar.io WAMP-over-WebSocket server factory.
- protocol[source]¶
The protocol to be spoken. Must be derived from
autobahn.websocket.protocol.WebSocketServerProtocol.
- class WampWebSocketServerProtocol[source]¶
Bases:
autobahn.twisted.websocket.WampWebSocketServerProtocolCrossbar.io WAMP-over-WebSocket server protocol.
- onClose(wasClean, code, reason)[source]¶
Callback from
autobahn.websocket.interfaces.IWebSocketChannel.onClose()