func (c OpCode) IsReserved() bool {
	return (0x3 <= c && c <= 0x7) || (0xb <= c && c <= 0xf)
}
IsReserved checks whether the c is reserved operation code.
See https://tools.ietf.org/html/rfc6455#section-5.2
package ws
import (
	"encoding/binary"
)
const (
	MaxControlFramePayloadSize = 125
)
type OpCode byte
const (
	OpContinuation OpCode = 0x0
	OpText         OpCode = 0x1
	OpBinary       OpCode = 0x2
	OpClose        OpCode = 0x8
	OpPing         OpCode = 0x9
	OpPong         OpCode = 0xa
)
func (c OpCode) IsControl() bool {
	return c&0x8 != 0
}
func (c OpCode) IsData() bool {
	return c&0x8 == 0
}