Files
butterfly/butterfly.server.py
Peter Cai a36579bb12 Send ping packets to keep connection alive
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.
2017-02-10 15:11:51 +08:00

11 KiB
Executable File