diff seobeo/seobeo.h @ 260:1f9877b637e9

Add Copilot-powered cyberpunk JRPG chat Integrate the production JRPG chat with Seobeo streaming, Deita persistence, and a Bazel-managed Copilot SDK and LiteLLM inference stack. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <mrjunejune@users.noreply.github.com>
date Wed, 05 Aug 2026 09:19:41 -0700
parents 609d3c6aff4e
children 04fee26ecce0
line wrap: on
line diff
--- a/seobeo/seobeo.h	Wed Aug 05 09:19:41 2026 -0700
+++ b/seobeo/seobeo.h	Wed Aug 05 09:19:41 2026 -0700
@@ -78,6 +78,8 @@
 extern int            Seobeo_Web_Server_Start(const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count);
 /* Start a web server bound to a specific host. Pass NULL to bind all interfaces. */
 extern int            Seobeo_Web_Server_Start_On(const char *host, const char *folder_path, const char *port, Seobeo_ServerMode mode, int thread_count);
+/* Request a running server to stop and return from its start function. */
+extern void           Seobeo_Web_Server_Stop(void);
 /* Generic HTTP GET Rquest to given host and port with path. It will mimic chrome. */
 extern int            Seobeo_Web_Client_Get(const char *host, const char *port, const char *path);
 
@@ -346,7 +348,9 @@
 extern void                  Seobeo_Router_Register(const char *method, const char *path_pattern, Seobeo_Route_Handler handler);
 /* Register a streaming route handler. Handler receives client handle for direct streaming. */
 extern void                  Seobeo_Router_Register_Stream(const char *method, const char *path_pattern, Seobeo_Stream_Handler handler);
-/* Register a GET route that owns an SSE stream until its handler returns. */
+/* Register an SSE route for a specific HTTP method. */
+extern void                  Seobeo_Router_Register_SSE_Method(const char *method, const char *path_pattern, Seobeo_SSE_Handler handler);
+/* Register a GET SSE route for compatibility. */
 extern void                  Seobeo_Router_Register_SSE(const char *path_pattern, Seobeo_SSE_Handler handler);
 /* Clean up router resources */
 extern void                  Seobeo_Router_Destroy();