Closed bbangert closed 9 years ago
This is an interesting one, given that golang.org/x/net/websocket
doesn't expose any hooks for sending PING frames—though it can receive and process them. We might need to send an application-level ping ({}
) instead.
Edit: The protocol layer can process PING
s, but not PONG
s.
Agreed, it'll be easier to send {} in a text frame.
To ensure connections stay alive, the server should have a configurable parameter indicating how frequently it should send a websocket ping frame.