conn.go
func (c *Conn) receive(msg *message) error {
	if !c.connected.Load().(bool) {
		return errors.New("use of closed connection")
	}

	return websocket.JSON.Receive(c.ws.Load().(*websocket.Conn), &msg)
}
func (c *Conn) receive(msg *message) error {
	if !c.connected.Load().(bool) {
		return errors.New("use of closed connection")
	}

	return websocket.JSON.Receive(c.ws.Load().(*websocket.Conn), &msg)
}
func ( c * Conn ) receive ( msg * message ) error { if ! c . connected . Load ( ) . ( bool ) { return errors . New ( " " ) } return websocket . JSON . Receive ( c . ws . Load ( ) . ( * websocket . Conn ) , & msg ) }
// Receive receives message from the connection.
Receive receives message from the connection .