Ejemplo n.º 1
0
func newWSHandler(conn *websocket.Conn) *wsHandler {
	h := &wsHandler{
		ws:   newWSConn(conn),
		addr: conn.RemoteAddr().String(),
	}
	h.initHandlers()
	return h
}