Versions in this module Expand all Collapse all v0 v0.0.1 Jul 23, 2021 Changes in this version + var DefaultOptions = Options + var ErrSessionNotOpen = errors.New("sockjs: session not in open state") + var WebSocketReadBufSize = 4096 + var WebSocketWriteBufSize = 4096 + func DefaultJSessionID(rw http.ResponseWriter, req *http.Request) + func NewHandler(prefix string, opts Options, handleFunc func(Session)) http.Handler + type Options struct + CheckOrigin func(*http.Request) bool + DisconnectDelay time.Duration + HeartbeatDelay time.Duration + JSessionID func(http.ResponseWriter, *http.Request) + Origin string + RawWebsocket bool + ResponseLimit uint32 + SockJSURL string + Websocket bool + WebsocketUpgrader *websocket.Upgrader + WebsocketWriteTimeout time.Duration + type Session interface + Close func(status uint32, reason string) error + GetSessionState func() SessionState + ID func() string + Recv func() (string, error) + Request func() *http.Request + Send func(string) error + type SessionState uint32 + const SessionActive + const SessionClosed + const SessionClosing + const SessionOpening Incompatible versions in this module v3.0.1+incompatible Nov 16, 2021 v3.0.0+incompatible Jul 23, 2021 Other modules containing this package github.com/admpub/sockjs-go/v3