diff seobeo/seobeo.h @ 173:827c6ac504cd hg-web

Merged in default here.
author MrJuneJune <me@mrjunejune.com>
date Mon, 19 Jan 2026 18:59:10 -0800
parents 6de849867459 058de208e640
children 71ad34a8bc9a
line wrap: on
line diff
--- a/seobeo/seobeo.h	Sat Jan 10 13:35:09 2026 -0800
+++ b/seobeo/seobeo.h	Mon Jan 19 18:59:10 2026 -0800
@@ -289,6 +289,8 @@
 
 /* Connect to WebSocket server with given URL (ws:// or wss://). */
 extern Seobeo_WebSocket         *Seobeo_WebSocket_Connect(const char *url);
+/* Connect to WebSocket server with custom headers. Headers should be newline-separated "Key: Value" pairs. */
+extern Seobeo_WebSocket         *Seobeo_WebSocket_Connect_With_Headers(const char *url, const char *headers);
 /* Send text message over WebSocket. */
 extern int32                     Seobeo_WebSocket_Send_Text(Seobeo_WebSocket *p_ws, const char *text);
 /* Send binary message over WebSocket. */