feat(web): Go W-G8 WebSocket routes and access_log
Register route_ws/ws_connect ABIs with an in-process broadcast hub so offline WS broadcast and access_log smokes pass on libweb.so. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
23e4bc406e
commit
4c06851e0e
11 files changed
+495
-1
No files matched your search
@@ -122,6 +122,8 @@ extern int web_app_error_page(char *args_json, char **out_json, char **err_msg);
|
||||
extern int web_app_sitemap(char *args_json, char **out_json, char **err_msg);
|
||||
extern int web_app_robots(char *args_json, char **out_json, char **err_msg);
|
||||
extern int web_sitemap_build(char *args_json, char **out_json, char **err_msg);
|
||||
extern int web_app_route_ws(char *args_json, char **out_json, char **err_msg);
|
||||
extern int web_ws_connect(char *args_json, char **out_json, char **err_msg);
|
||||
|
||||
static int register_core(void) {
|
||||
if (host_register((char *)"web_go_ready", (char *)"", web_go_ready) != 0) return 1;
|
||||
@@ -197,6 +199,8 @@ static int register_core(void) {
|
||||
if (host_register((char *)"web_app_sitemap", (char *)"app,path,base,table,loc,limit,items", web_app_sitemap) != 0) return 1;
|
||||
if (host_register((char *)"web_app_robots", (char *)"app,body,sitemap", web_app_robots) != 0) return 1;
|
||||
if (host_register((char *)"web_sitemap_build", (char *)"base,items", web_sitemap_build) != 0) return 1;
|
||||
if (host_register((char *)"web_app_route_ws", (char *)"app,path,echo,mode", web_app_route_ws) != 0) return 1;
|
||||
if (host_register((char *)"web_ws_connect", (char *)"url,message,headers,timeout_sec", web_ws_connect) != 0) return 1;
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user