/
On Close

On Close

Called when a WebSocket Connection has closed.

Note that it doesn't guarantee that the closing handshake is completed, but only notify that the connection will not send or receive WebSocket Message anymore.

Prototype

          void  HTTPc_WebSockOnClose (HTTPc_CONN_OBJ              *p_conn,
                                      HTTPc_WEBSOCK_CLOSE_CODE     close_code,
                                      HTTPc_WEBSOCK_CLOSE_REASON  *p_reason);


Arguments

p_conn

Pointer to the current HTTPc Connection Object.

close_code

Code defined by the RFC to explain the reason of the connection closing.  

p_reason

Pointer that contains the data following the close code and the length. 

Return Values

None.

Required Configuration

Notes / Warnings

Related content

Closing a Connection
Closing a Connection
More like this
On Message TX Complete
On Message TX Complete
More like this
On Message RX Complete
On Message RX Complete
More like this
HTTPc_WebSockClr()
More like this
HTTPc_WebSockUpgrade()
HTTPc_WebSockUpgrade()
More like this