TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.
http://tootallnate.github.io/Java-WebSocket
MIT License
10.51k stars 2.58k forks source link

Heartbeat #1255

Closed jzqCode closed 2 years ago

jzqCode commented 2 years ago

Don't adnroid need to send heartbeat packets actively?

jzqCode commented 2 years ago

adnroid 不需要主动发送心跳包吗

PhilipRoman commented 2 years ago

Hearbeat packets are sent automatically by default every 60 seconds - https://github.com/TooTallNate/Java-WebSocket/wiki/Lost-connection-detection

You can disable them if you want.