conn.go
func (c *Conn) setConn(ws *websocket.Conn) error {
	c.ws.Store(ws)
	c.connected.Store(true)
	if err := ws.SetDeadline(time.Now().Add(c.deadline)); err != nil {
		return fmt.Errorf("conn: error while setting websocket connection deadline: %v", err)
	}
	return nil
}
func (c *Conn) setConn(ws *websocket.Conn) error {
	c.ws.Store(ws)
	c.connected.Store(true)
	if err := ws.SetDeadline(time.Now().Add(c.deadline)); err != nil {
		return fmt.Errorf("conn: error while setting websocket connection deadline: %v", err)
	}
	return nil
}
// Reuse an established websocket.Conn.