mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-06-07 21:04:38 +00:00
Fix #126 Idle WebSocket connections tend to be closed after some period of time. This commit enables the Butterfly server to send ping packets periodically in order to keep the connection alive. A new option `keepalive_interval` is also introduced for users to specify the interval to send `ping` packets. By default it is 30 seconds.
11 KiB
Executable File
11 KiB
Executable File