PlugFox / ws

WS: A compact, highly efficient WebSocket library. Easily establish, manage, and reconnect WebSocket connections in real-time apps.
https://pub.dev/packages/ws
MIT License
39 stars 5 forks source link

How to Ping the server #13

Closed sabin26 closed 6 months ago

sabin26 commented 6 months ago

On the backend, I have setup Ping-pong capabilities. Do I have to manually add a ping message to the web socket and also figure out when to ping in my application? Or Is there any standard approach or built-in method that I can use?

sabin26 commented 6 months ago

I used a timer to ping the server.