Versions in this module Expand all Collapse all v0 v0.1.0 May 23, 2015 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