i'm working on a project which i need to use Websocket to exchange data with server
and
i was wondering what is usage of ping and pong in Websocket and what are them?
Thanks
i'm working on a project which i need to use Websocket to exchange data with server
and
i was wondering what is usage of ping and pong in Websocket and what are them?
Thanks
ping and pong is used for checking the websocket connection. in the way that if the client sends a ping to server and the server doesn't respond with a pong , the websocket is disconnected. It's also used to check the speed of data exchange between server and client.