code: func NewWebsocketConnection(ws Conn) net.Conn {
  	wsconn := &WebsocketConnection{
  		ws:           ws,
  		readTimeout:  60 * time.Second,
  		writeTimeout: 10 * time.Second,
  		pingInterval: 10 * time.Second,
  		closedChan:   make(chan bool),
  		textChan:     make(chan []byte, 100),
  	}
  	wsconn.startPingInterval()
  	return wsconn
  }
docs: // Returns a websocket connection wrapper to the net.Conn interface.