On Open
Called when a WebSocket upgrade is successful.
It notify that the application can start receive and transmit WebSocket messages.
Prototype
void HTTPc_WebSockOnOpen (HTTPc_CONN_OBJ *p_conn);
Arguments
p_conn
Pointer to the current HTTPc Connection Object.
Return Values
None.
Required Configuration
- The HTTPc_CFG_WEBSOCKET_EN configuration macro MUST be enabled.
Notes / Warnings
- This hook is set in a HTTPc_WEBSOCK_OBJ using HTTPc_WebSockSetParam() with the parameter HTTPc_PARAM_TYPE_WEBSOCK_ON_OPEN.
Must be set to the HTTPc_WEBSOCK_OBJ before upgrading the connection with HTTPc_WebSockUpgrade().
.