You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback function `websocket_extension_message_out_perform` can modify the message data and data lenght and the RSV flags. The callback function `websocket_extension_message_in_perform` can modify the message data only. Inside these functions, `data_in` and `data_len_in` are the current data, your extension callback function must update `data_out` with a `o_malloc`'ed data and set the new data length using `data_len_out` and return `U_OK` on success.
1599
+
The callback function `websocket_extension_message_out_perform` can modify the message data and data length and the RSV flags. The callback function `websocket_extension_message_in_perform` can modify the message data only. Inside these functions, `data_in` and `data_len_in` are the current data, your extension callback function must update `data_out` with a `o_malloc`'ed data and set the new data length using `data_len_out` and return `U_OK` on success.
1600
1600
If your function doesn't return `U_OK`, the message data won't be updated and `data_out` won't be free'd if set.
1601
1601
1602
1602
You can call `ulfius_add_websocket_extension_message_perform` or `ulfius_add_websocket_client_extension_message_perform` multiple times for a websocket definition. In that case the extension callbacks function will be called in the same order for the `websocket_extension_message_out_perform` callbacks, and in reverse order for the `websocket_extension_message_in_perform` callbacks.
@@ -1652,15 +1652,15 @@ int ulfius_websocket_send_close_signal(struct _websocket_manager * websocket_man
1652
1652
/**
1653
1653
* Returns the status of the websocket connection
1654
1654
* Returned values can be U_WEBSOCKET_STATUS_OPEN or U_WEBSOCKET_STATUS_CLOSE
1655
-
*wether the websocket is open or closed, or U_WEBSOCKET_STATUS_ERROR on error
1655
+
*whether the websocket is open or closed, or U_WEBSOCKET_STATUS_ERROR on error
1656
1656
*/
1657
1657
int ulfius_websocket_status(struct _websocket_manager * websocket_manager);
1658
1658
1659
1659
/**
1660
1660
* Wait until the websocket connection is closed or the timeout in milliseconds is reached
1661
1661
* if timeout is 0, no timeout is set
1662
1662
* Returned values can be U_WEBSOCKET_STATUS_OPEN or U_WEBSOCKET_STATUS_CLOSE
1663
-
*wether the websocket is open or closed, or U_WEBSOCKET_STATUS_ERROR on error
1663
+
*whether the websocket is open or closed, or U_WEBSOCKET_STATUS_ERROR on error
1664
1664
*/
1665
1665
int ulfius_websocket_wait_close(struct _websocket_manager * websocket_manager, unsigned int timeout);
1666
1666
```
@@ -1798,15 +1798,15 @@ int ulfius_websocket_client_connection_close(struct _websocket_client_handler *
1798
1798
/**
1799
1799
* Returns the status of the websocket client connection
1800
1800
* Returned values can be U_WEBSOCKET_STATUS_OPEN or U_WEBSOCKET_STATUS_CLOSE
1801
-
*wether the websocket is open or closed, or U_WEBSOCKET_STATUS_ERROR on error
1801
+
*whether the websocket is open or closed, or U_WEBSOCKET_STATUS_ERROR on error
1802
1802
*/
1803
1803
int ulfius_websocket_client_connection_status(struct _websocket_client_handler * websocket_client_handler);
1804
1804
1805
1805
/**
1806
1806
* Wait until the websocket client connection is closed or the timeout in milliseconds is reached
1807
1807
* if timeout is 0, no timeout is set
1808
1808
* Returned values can be U_WEBSOCKET_STATUS_OPEN or U_WEBSOCKET_STATUS_CLOSE
1809
-
*wether the websocket is open or closed, or U_WEBSOCKET_STATUS_ERROR on error
1809
+
*whether the websocket is open or closed, or U_WEBSOCKET_STATUS_ERROR on error
1810
1810
*/
1811
1811
int ulfius_websocket_client_connection_wait_close(struct _websocket_client_handler * websocket_client_handler, unsigned int timeout);
0 commit comments