crossbar.webservice.wap

Classes

RouterWebServiceWap

WAMP Application Page service.

Module Contents

class RouterWebServiceWap(transport, path, config=None, resource=None)[source]

Bases: crossbar.webservice.base.RouterWebService

WAMP Application Page service.

static check(personality, config)[source]

Checks the configuration item. When errors are found, an InvalidConfigException exception is raised.

Parameters:
  • personality – The node personality class.

  • config – The Web service configuration item.

Raises:

crossbar.common.checkconfig.InvalidConfigException

static create(transport, path: str, config: Dict[str, Any])[source]

Create a new WAP Web service (calling WAMP and rendering Jinja2 templates).

Parameters:
  • transport – Web transport on which to add the web service.

  • path – HTTP path on which to add the web service.

  • config – Web service configuration.

Returns:

Web service instance.