Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WriteWait defines time allowed to write a message to the peer. WriteWait = 3 * time.Second // PongWait defines time allowed to read the next pong message from the peer. PongWait = 30 * time.Second // PingPeriod defines send pings to peer with this period. Must be less than pongWait. PingPeriod = (PongWait * 9) / 10 )
Variables ¶
View Source
var Upgrader = socket.Upgrader{ CheckOrigin: func(r *http.Request) bool { return true }, ReadBufferSize: 1024, WriteBufferSize: 1024, }
Upgrader ...
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.