def onSessionOpen(self): ## override global client auth options self.clientAuthTimeout = 0 self.clientAuthAllowAnonymous = True ## call base class method WampCraServerProtocol.onSessionOpen(self)
def onSessionOpen(self): if self.factory.config.secure: ## require WAMP-CRA authentication self.clientAuthTimeout = 0 self.clientAuthAllowAnonymous = True WampCraServerProtocol.onSessionOpen(self) else: WampServerProtocol.onSessionOpen(self) self.onReady()