I use code.google.com/p/go.net/websocket on the server, so the client can receive a notification from the server.
However, it seems that after the client connects to the server, if there is no data transfer between the client and the server, the server will return an EOF error in websocket.JSON.Receive() , it will look like a timeout mechanism.
And I have a google search, it seems that the websocket protocol has ping pong to support the connection, I want to ask if code.google.com/p/go.net/websocket this ping protocol or not?
What should I do if I want to maintain communication between the client and server?
source share