crossbar.router.protocol

Classes

WampRawSocketClientFactory

Crossbar.io WAMP-over-RawSocket client factory.

WampRawSocketClientProtocol

Crossbar.io WAMP-over-RawSocket client protocol.

WampRawSocketServerFactory

Crossbar.io WAMP-over-RawSocket server factory.

WampRawSocketServerProtocol

Crossbar.io WAMP-over-RawSocket server protocol.

WampWebSocketClientFactory

Crossbar.io WAMP-over-WebSocket client factory.

WampWebSocketClientProtocol

Crossbar.io WAMP-over-WebSocket client protocol.

WampWebSocketServerFactory

Crossbar.io WAMP-over-WebSocket server factory.

WampWebSocketServerProtocol

Crossbar.io WAMP-over-WebSocket server protocol.

Module Contents

class WampRawSocketClientFactory(factory, config)[source]

Bases: autobahn.twisted.rawsocket.WampRawSocketClientFactory

Crossbar.io WAMP-over-RawSocket client factory.

_config[source]
protocol[source]
class WampRawSocketClientProtocol[source]

Bases: autobahn.twisted.rawsocket.WampRawSocketClientProtocol

Crossbar.io WAMP-over-RawSocket client protocol.

class WampRawSocketServerFactory(factory, config)[source]

Bases: autobahn.twisted.rawsocket.WampRawSocketServerFactory

Crossbar.io WAMP-over-RawSocket server factory.

_config[source]
log[source]
protocol[source]
class WampRawSocketServerProtocol[source]

Bases: autobahn.twisted.rawsocket.WampRawSocketServerProtocol

Crossbar.io WAMP-over-RawSocket server protocol.

_on_handshake_complete()[source]
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.

log[source]
class WampWebSocketClientFactory(factory, *args, **kwargs)[source]

Bases: autobahn.twisted.websocket.WampWebSocketClientFactory

Crossbar.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.WampWebSocketClientProtocol

Crossbar.io WAMP-over-WebSocket client protocol.

class WampWebSocketServerFactory(factory, cbdir, config, templates)[source]

Bases: autobahn.twisted.websocket.WampWebSocketServerFactory

Crossbar.io WAMP-over-WebSocket server factory.

_cbdir[source]
_config[source]
_templates[source]
debug_traffic[source]
log[source]
protocol[source]

The protocol to be spoken. Must be derived from autobahn.websocket.protocol.WebSocketServerProtocol.

showServerVersion = False[source]
class WampWebSocketServerProtocol[source]

Bases: autobahn.twisted.websocket.WampWebSocketServerProtocol

Crossbar.io WAMP-over-WebSocket server protocol.

_cbtid = None[source]
log[source]
onClose(wasClean, code, reason)[source]

Callback from autobahn.websocket.interfaces.IWebSocketChannel.onClose()

onConnect(request)[source]

Callback from autobahn.websocket.interfaces.IWebSocketChannel.onConnect()

onOpen()[source]

Callback from autobahn.websocket.interfaces.IWebSocketChannel.onOpen()

sendServerStatus(redirectUrl=None, redirectAfter=0)[source]

Used to send out server status/version upon receiving a HTTP/GET without upgrade to WebSocket header (and option serverStatus is True).