MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / start

Method start

stream/proxy_server.py:457–473  ·  view source on GitHub ↗

Start the proxy server

(self)

Source from the content-addressed store, hash-verified

455 pass
456
457 async def start(self) -> None:
458 """
459 Start the proxy server
460 """
461 server = await asyncio.start_server(self.handle_client, self.host, self.port)
462 addr = server.sockets[0].getsockname()
463 self.logger.debug(f"[Proxy] Serving on: {addr}")
464
465 if self.queue:
466 try:
467 self.queue.put("READY")
468 self.logger.debug("[Proxy] Sent READY signal")
469 except Exception as e:
470 self.logger.error(f"Failed to send 'READY' signal: {e}", exc_info=True)
471
472 async with server:
473 await server.serve_forever()

Callers 15

mainFunction · 0.95
builtinFunction · 0.95
_try_appindicatorMethod · 0.45
_try_pystrayMethod · 0.45
_start_internalMethod · 0.45
input_with_timeoutFunction · 0.45
launch_camoufox.pyFile · 0.45
setUpMethod · 0.45
asyncSetUpMethod · 0.45
test_thread_safetyMethod · 0.45

Calls 2

debugMethod · 0.80
errorMethod · 0.80