package
3.0.5+incompatible
Repository: https://github.com/luiz-simples/sockjs-go.git
Documentation: pkg.go.dev

# README

see README for proper import paths

# 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

SessionActive active session.
SessionClosed closed session, no activity at all, should be removed from handler completely and not reused.
SessionClosing session being closed, sending "closeFrame" to receivers.
SessionOpening 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.

# Structs

Options type is used for defining various sockjs options.

# Interfaces

Session represents a connection between server and client.

# Type aliases

SessionState defines the current state of the session.