mirror of
https://github.com/lammertb/libhttp.git
synced 2025-08-17 22:21:06 +03:00
24 lines
585 B
Markdown
24 lines
585 B
Markdown
# Civetweb API Reference
|
|
|
|
### `mg_set_websocket_handler( ctx, uri, connect_handler, ready_handler, data_handler, close_handler, cbdata );`
|
|
|
|
### Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| :--- | :--- | :--- |
|
|
|**`ctx`**|`mg_context *`||
|
|
|**`uri`**|`const char *`||
|
|
|**`connect_handler`**|`mg_websocket_connect_handler`||
|
|
|**`ready_handler`**|`mg_websocket_ready_handler`||
|
|
|**`data_handler`**|`mg_websocket_data_handler`||
|
|
|**`close_handler`**|`mg_websocket_close_handler`||
|
|
|**`cbdata`**|`void *`||
|
|
|
|
### Return Value
|
|
|
|
*none*
|
|
|
|
### Description
|
|
|
|
### See Also
|