const websocketGUID …
const closeStatusNormal …
const closeStatusGoingAway …
const closeStatusProtocolError …
const closeStatusUnsupportedData …
const closeStatusFrameTooLarge …
const closeStatusNoStatusRcvd …
const closeStatusAbnormalClosure …
const closeStatusBadMessageData …
const closeStatusPolicyViolation …
const closeStatusTooBigData …
const closeStatusExtensionMismatch …
const maxControlFramePayloadLength …
var ErrBadMaskingKey …
var ErrBadPongMessage …
var ErrBadClosingStatus …
var ErrUnsupportedExtensions …
var ErrNotImplemented …
var handshakeHeader …
type hybiFrameHeader …
type hybiFrameReader …
func (frame *hybiFrameReader) Read(msg []byte) (n int, err error) { … }
func (frame *hybiFrameReader) PayloadType() byte { … }
func (frame *hybiFrameReader) HeaderReader() io.Reader { … }
func (frame *hybiFrameReader) TrailerReader() io.Reader { … }
func (frame *hybiFrameReader) Len() (n int) { … }
type hybiFrameReaderFactory …
func (buf hybiFrameReaderFactory) NewFrameReader() (frame frameReader, err error) { … }
type hybiFrameWriter …
func (frame *hybiFrameWriter) Write(msg []byte) (n int, err error) { … }
func (frame *hybiFrameWriter) Close() error { … }
type hybiFrameWriterFactory …
func (buf hybiFrameWriterFactory) NewFrameWriter(payloadType byte) (frame frameWriter, err error) { … }
type hybiFrameHandler …
func (handler *hybiFrameHandler) HandleFrame(frame frameReader) (frameReader, error) { … }
func (handler *hybiFrameHandler) WriteClose(status int) (err error) { … }
func (handler *hybiFrameHandler) WritePong(msg []byte) (n int, err error) { … }
func newHybiConn(config *Config, buf *bufio.ReadWriter, rwc io.ReadWriteCloser, request *http.Request) *Conn { … }
func generateMaskingKey() (maskingKey []byte, err error) { … }
func generateNonce() (nonce []byte) { … }
func removeZone(host string) string { … }
func getNonceAccept(nonce []byte) (expected []byte, err error) { … }
func hybiClientHandshake(config *Config, br *bufio.Reader, bw *bufio.Writer) (err error) { … }
func newHybiClientConn(config *Config, buf *bufio.ReadWriter, rwc io.ReadWriteCloser) *Conn { … }
type hybiServerHandshaker …
func (c *hybiServerHandshaker) ReadHandshake(buf *bufio.Reader, req *http.Request) (code int, err error) { … }
func Origin(config *Config, req *http.Request) (*url.URL, error) { … }
func (c *hybiServerHandshaker) AcceptHandshake(buf *bufio.Writer) (err error) { … }
func (c *hybiServerHandshaker) NewServerConn(buf *bufio.ReadWriter, rwc io.ReadWriteCloser, request *http.Request) *Conn { … }
func newHybiServerConn(config *Config, buf *bufio.ReadWriter, rwc io.ReadWriteCloser, request *http.Request) *Conn { … }