Source code for crossbar.router

#####################################################################################
#
#  Copyright (c) typedef int GmbH
#  SPDX-License-Identifier: EUPL-1.2
#
#####################################################################################


[docs] class RouterOptions(object): """ Router options for creating routers. """
[docs] URI_CHECK_LOOSE = "loose"
[docs] URI_CHECK_STRICT = "strict"
def __init__(self, uri_check=None, event_dispatching_chunk_size=None): """ :param uri_check: Method which should be applied to check WAMP URIs. :type uri_check: str """
[docs] self.uri_check = uri_check or RouterOptions.URI_CHECK_STRICT
[docs] self.event_dispatching_chunk_size = event_dispatching_chunk_size or 100
[docs] def __str__(self): return "RouterOptions(uri_check = {0}, event_dispatching_chunk_size = {1})".format( self.uri_check, self.event_dispatching_chunk_size, )
[docs] class NotAttached(RuntimeError): """ Internal error: session not attached to router. """