crossbar.edge.worker.router¶
Classes¶
Controller session for crossbar router workers. |
Module Contents¶
- class ExtRouterController(config=None, reactor=None, personality=None)[source]¶
Bases:
crossbar.worker.router.RouterControllerController session for crossbar router workers.
- start_router_realm(realm_id, realm_config, details=None)[source]¶
Starts a realm on this router worker. The minimum configuration must contain the realm name:
{ "name": "realm1" }
The configuration can also configure one or more roles, including configuration of role permissions:
{ "name": "realm1", "roles": [{ "name": "anonymous", "permissions": [{ "uri": "", "match": "prefix", "allow": { "call": True, "register": True, "publish": True, "subscribe": True }, "disclose": { "caller": True, "publisher": True }, "cache": True }] }] }
- Parameters:
realm_id (str) – The ID of the realm to start.
realm_config (dict) – The realm configuration.
details (
autobahn.wamp.types.CallDetails) – Call details.