def _get_websockserver(self, **kwargs): return websocket.WebSocketServer(listen_host='localhost', listen_port=80, key=self.tmpdir, web=self.tmpdir, record=self.tmpdir, **kwargs)
def _get_server(self, handler_class=websocket.WebSocketRequestHandler, **kwargs): web = kwargs.pop('web', self.tmpdir) return websocket.WebSocketServer( handler_class, listen_host='localhost', listen_port=80, key=self.tmpdir, web=web, record=self.tmpdir, daemon=False, ssl_only=0, idle_timeout=1, **kwargs)
def _get_server(self, handler_class=websocket.WebSocketRequestHandler, **kwargs): return websocket.WebSocketServer(handler_class, listen_host='localhost', listen_port=80, key=self.tmpdir, web=self.tmpdir, record=self.tmpdir, **kwargs)