Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*option)
func WithCheckOrigin ¶
func WithCheckOrigin(fn func(ctx *fasthttp.RequestCtx) bool) Option
func WithEnableCompression ¶
func WithHandshakeTimeout ¶
func WithReadBufferSize ¶
func WithWriteBufferSize ¶
type Session ¶
type Session struct {
gonet.SessionCommon
// contains filtered or unexported fields
}
Session is the fasthttp WebSocket connection session.
func (*Session) Clear ¶
func (s *Session) Clear()
Clear resets the session so it can be reused from the pool.
func (*Session) ReadLoop ¶
func (s *Session) ReadLoop()
ReadLoop reads WebSocket frames until the connection closes.
func (*Session) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.