Hook Functions WebSocket
µC/HTTP-client provides a set of hook functions for WebSocket to customize the stack behavior for your application needs. Those are only available when the µC/HTTP-client internal task is active ( Called when a connection that has been successfully upgraded close.HTTPc_CFG_MODE_ASYNC_TASK_EN
) and can be set up with the API function HTTPc_WebSockMsgSetParam()Hook Function Description Control Hooks On Open Called when a WebSocket Upgrade is successful. On Close Called when a error occurred. On Error Message RX Hooks On Message Reception Initialization Called at the beginning of the WebSocket data message reception. On Message RX Data Called each time a chunk of the data message is received is available. On Message RX Complete Called when the data message is completely received. On Pong Called when a Pong message is received.