comparison 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
comparison
equal deleted inserted replaced
151:c033667da5f9 173:827c6ac504cd
287 * 5. **Control Frames**: Proper handling of ping, pong, and close frames 287 * 5. **Control Frames**: Proper handling of ping, pong, and close frames
288 */ 288 */
289 289
290 /* Connect to WebSocket server with given URL (ws:// or wss://). */ 290 /* Connect to WebSocket server with given URL (ws:// or wss://). */
291 extern Seobeo_WebSocket *Seobeo_WebSocket_Connect(const char *url); 291 extern Seobeo_WebSocket *Seobeo_WebSocket_Connect(const char *url);
292 /* Connect to WebSocket server with custom headers. Headers should be newline-separated "Key: Value" pairs. */
293 extern Seobeo_WebSocket *Seobeo_WebSocket_Connect_With_Headers(const char *url, const char *headers);
292 /* Send text message over WebSocket. */ 294 /* Send text message over WebSocket. */
293 extern int32 Seobeo_WebSocket_Send_Text(Seobeo_WebSocket *p_ws, const char *text); 295 extern int32 Seobeo_WebSocket_Send_Text(Seobeo_WebSocket *p_ws, const char *text);
294 /* Send binary message over WebSocket. */ 296 /* Send binary message over WebSocket. */
295 extern int32 Seobeo_WebSocket_Send_Binary(Seobeo_WebSocket *p_ws, const uint8 *data, size_t length); 297 extern int32 Seobeo_WebSocket_Send_Binary(Seobeo_WebSocket *p_ws, const uint8 *data, size_t length);
296 /* Send ping frame (for keep-alive). */ 298 /* Send ping frame (for keep-alive). */