func (ws *wsConn) Read(p []byte) (n int, err error) {
	op, r, err := ws.c.NextReader()
	if err != nil {
		return
	}

	if op != websocket.BinaryMessage {
		err = ErrInvalidMessage
		return
	}

	return r.Read(p)
}
// Read reads the next span of bytes from the websocket connection and returns
// the number of bytes read.
Read reads the next span of bytes from the websocket connection and returns
the number of bytes read.
// Read reads the next span of bytes from the websocket connection and returns // the number of bytes read .
func (ws *wsConn) Read(p []byte) (n int, err error) {
	op, r, err := ws.c.NextReader()
	if err != nil {
		return
	}
	if op != websocket.BinaryMessage {
		err = ErrInvalidMessage
		return
	}
	return r.Read(p)
}
func ( ws * wsConn ) Read ( p [ ] byte ) ( n int , err error ) { op , r , err := ws . c . NextReader ( ) if err != nil { return } if op != websocket . BinaryMessage { err = ErrInvalidMessage return } return r . Read ( p ) }
Read reads the next span of bytes from the websocket connection and returns
the number of bytes read.
Read reads the next span of bytes from the websocket connection and returns the number of bytes read .