Versions in this module Expand all Collapse all v0 v0.0.1 Sep 29, 2018 Changes in this version + var CloseFrame = fmt.Errorf("Received close Frame") + var ErrInvalidCloseStatus = fmt.Errorf("Received invalid close status") + var ErrInvalidFragment = fmt.Errorf("Received invalid fragmentation") + var ErrInvalidOpCode = fmt.Errorf("Received invalid OpCode") + var ErrInvalidPayload = fmt.Errorf("Received invalid utf8 payload") + var ErrInvalidSize = fmt.Errorf("Received invalid payload size") + var ErrReservedBits = fmt.Errorf("Received reserved bits") + var ErrTooLongControlFrame = fmt.Errorf("Received a control frame that is fragmented or too long") + var ErrUnexpectedContinuation = fmt.Errorf("Received unexpected continuation frame") + var ErrUnmaskedFrame = fmt.Errorf("Received unmasked frame") + type Client struct + Arguments [][]string + Protocol string + Store interface{} + type Controller struct + Fun ControllerFunc + URI *parser.Scheme + type ControllerFunc func(*Client, <-chan Message, chan<- Message, chan<- Message) + type ControllerSet struct + Def *Controller + Uri []*Controller + func (s *ControllerSet) Match(uri string) (*Controller, [][]string) + type Message struct + Data []byte + Final bool + Size uint + Type MessageType + func (m Message) Send(writer io.Writer) error + type MessageError uint16 + const GOING_AWAY + const INVALID_PAYLOAD + const MESSAGE_TOO_LARGE + const NONE + const NORMAL + const PROTOCOL_ERR + const UNACCEPTABLE_OPCODE + type MessageType byte + const BINARY + const CLOSE + const CONTINUATION + const PING + const PONG + const TEXT + type Server struct + func CreateServer(host string, port uint16) *Server + func (s *Server) Bind(uri string, f ControllerFunc) error + func (s *Server) BindDefault(f ControllerFunc) + func (s *Server) Launch() error