AdkDev服务器
The local development server: AdkApiServer plus the endpoints the Dev UI drives, and the UI.
These endpoints read agent state and run debugging code, so this variant belongs on a development machine; deploy AdkApiServer instead. Non-loopback peers and proxied or tunneled requests are rejected even when AdkServerConfig.host is widened, unless remote access is explicitly enabled.
函数
Link copied to clipboard
在……上启动服务器。 AdkServerConfig.host 和 AdkServerConfig.port;当……的时候 wait 如果该操作的结果为“true”,程序将一直处于阻塞状态,直到服务器停止运行。在服务器停止之前,如果再次调用该操作,程序仍会继续处于阻塞状态。 停止 即使启动失败后,它也不会执行任何操作(即什么都不会做)。
Link copied to clipboard
停止发动机;随后会进入等待状态。 adkApiModule 用于“刷新”(或清除)某些数据或状态。 AdkServerConfig.sessionService 此外,还有缓冲式遥测功能:在会话数据被刷新的过程中,系统会额外等待最多 3 秒的时间,以确保用户可以取消操作(即停止数据刷新)。