企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## HttpServer::send ###接口说明 >设置最大并发连接数。 > +++ put:send var:socketIndex=连接索引# var:str=返回给前台的字符串# <<< success 无返回类型 +++ ###代码演示 ~~~ var test2(var httptype,var params,var socketIndex) { http.send(socketIndex,"ok"); } var http = new HttpServer; var main(var thread,var params) { http.init(thread); http.setPort(4601); http.setMaxSocketCount(5000); http.startService(); //变量方式注册 http.handleFunc("/test2",test2); } ~~~