Closed lp-hong closed 4 years ago
Replaced ping logic in Transport.js with keep alive heartbeat(ping/pong) as suggested from the ws library on broken connections. Added new ws event 'pong' so that Agent class can implement callbacks.
https://github.com/websockets/ws#how-to-detect-and-close-broken-connections
Replaced ping logic in Transport.js with keep alive heartbeat(ping/pong) as suggested from the ws library on broken connections. Added new ws event 'pong' so that Agent class can implement callbacks.
https://github.com/websockets/ws#how-to-detect-and-close-broken-connections