Versions in this module Expand all Collapse all v2 v2.0.4 Nov 16, 2019 v2.0.2 Mar 28, 2020 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 + DisconnectDelay time.Duration + HeartbeatDelay time.Duration + JSessionID func(http.ResponseWriter, *http.Request) + ResponseLimit uint32 + SockJSURL string + Websocket bool + type Session interface + Close func(status uint32, reason string) error + ID func() string + Recv func() (string, error) + Send func(string) error Other modules containing this package github.com/i9m/sockjs-go github.com/i9m/sockjs-go/v3