Correct Way To Close a Websocket Socket
Posted: Tue Sep 08, 2020 8:11 pm
Hi,
I am coding a websocket server using the esp-idf component "esp_http_server.h".
I am trying to implement a keep alive management on this server.
I would like to know the correct way to close a websocket socket once the websocket client connection is dead.
Using only this function defined on sockets.h file are sufficient, or i need to do more something ?
"static inline int closesocket(int s)"
Thank's.
I am coding a websocket server using the esp-idf component "esp_http_server.h".
I am trying to implement a keep alive management on this server.
I would like to know the correct way to close a websocket socket once the websocket client connection is dead.
Using only this function defined on sockets.h file are sufficient, or i need to do more something ?
"static inline int closesocket(int s)"
Thank's.