package
0.0.0-20190620042557-e70edfda8e57
Repository: https://github.com/360yun/sockjs-go.git
Documentation: pkg.go.dev
# Functions
DefaultJSessionID is a default behaviour function to be used in options for JSessionID if JSESSIONID is needed.
NewHandler creates new HTTP handler that conforms to the basic net/http.Handler interface.
# Constants
active session.
closed session, no activity at all, should be removed from handler completely and not reused.
session being closed, sending "closeFrame" to receivers.
brand new session, need to send "h" to receiver.
# Variables
DefaultOptions is a convenient set of options to be used for sockjs.
ErrSessionNotOpen error is used to denote session not in open state.
WebSocketReadBufSize is a parameter that is used for WebSocket Upgrader.
WebSocketWriteBufSize is a parameter that is used for WebSocket Upgrader https://github.com/gorilla/websocket/blob/master/server.go#L230.
# Interfaces
Session represents a connection between server and client.
# Type aliases
SessionState defines the current state of the session.