Versions in this module Expand all Collapse all v2 v2.2.3 May 19, 2023 Changes in this version + var ErrNilConn = websocket.ErrNilConn + var ErrNilNetConn = websocket.ErrNilNetConn v2.2.2 May 19, 2023 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 + WriteBufferPool websocket.BufferPool + WriteBufferSize int + type Conn struct + func (conn *Conn) Close() error + func (conn *Conn) Cookies(key string, defaultValue ...string) string + func (conn *Conn) Headers(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 + func (conn *Conn) ReadJSON(v interface{}) error + func (conn *Conn) WriteJSON(v interface{}) error