def serve(self): port = self.settings.port return await websockets.serve(self._accept, "localhost", port)