def factory(self): uri = 'ws://' + self._ws_conf.bind + ':' + str(self._ws_conf.port) return factory.ProtocolFactory( uri, handler=self._api, external_port=self._ws_conf.external_port, auth_strategy=self._auth_strategy, loop=asyncio.get_event_loop(), secret_key=self._conf.signed_url.secret_key)
def factory(self): uri = 'ws://' + self._ws_conf.bind + ':' + str(self._ws_conf.port) debug_enabled = LOG.isEnabledFor(logging.DEBUG) return factory.ProtocolFactory( uri, debug=debug_enabled, handler=self._api, external_port=self._ws_conf.external_port, auth_strategy=self._auth_strategy, loop=asyncio.get_event_loop(), secret_key=self._conf.signed_url.secret_key)