Versions in this module Expand all Collapse all v2 v2.0.1 Sep 22, 2020 Changes in this version + const BinaryMessage + const CloseAbnormalClosure + const CloseGoingAway + const CloseInternalServerErr + const CloseInvalidFramePayloadData + const CloseMandatoryExtension + const CloseMessage + const CloseMessageTooBig + const CloseNoStatusReceived + const CloseNormalClosure + const ClosePolicyViolation + const CloseProtocolError + const CloseServiceRestart + const CloseTLSHandshake + const CloseTryAgainLater + const CloseUnsupportedData + const PingMessage + const PongMessage + const TextMessage + var ErrBadHandshake = errors.New("websocket: bad handshake") + var ErrCloseSent = errors.New("websocket: close sent") + var ErrReadLimit = errors.New("websocket: read limit exceeded") + func FormatCloseMessage(closeCode int, text string) []byte + func IsCloseError(err error, codes ...int) bool + func IsUnexpectedCloseError(err error, expectedCodes ...int) bool + func IsWebSocketUpgrade(c *fiber.Ctx) bool + func JoinMessages(c *websocket.Conn, term string) io.Reader + func New(handler func(*Conn), config ...Config) fiber.Handler + type Config struct + EnableCompression bool + Filter func(*fiber.Ctx) bool + HandshakeTimeout time.Duration + Origins []string + ReadBufferSize int + Subprotocols []string + WriteBufferSize int + type Conn struct + func (conn *Conn) Cookies(key string, defaultValue ...string) string + func (conn *Conn) Locals(key string) interface{} + func (conn *Conn) Params(key string, defaultValue ...string) string + func (conn *Conn) Query(key string, defaultValue ...string) string