package
0.0.0-20180710021347-baa1a54919e3
Repository: https://github.com/koding/kite.git
Documentation: pkg.go.dev

# Functions

ConnectWebsocketSession dials the remote specified in the opts and creates new websocket session.
DialWebsocket establishes a SockJS session over a websocket connection.
DialXHR establishes a SockJS session over a XHR connection.
IsSessionClosed tests whether given error is caused by a closed session.
NewWebsocketSession creates new sockjs.Session from existing websocket connection.
NewXHRSession returns a new XHRSession, a SockJS client which supports xhr-polling: http://sockjs.github.io/sockjs-protocol/sockjs-protocol-0.3.3.html#section-74 Deprecated: Use DialXHR instead.

# Variables

ErrPollTimeout is returned when reading first byte of the http response body has timed out.
ErrSessionClosed is returned by Send/Recv methods when calling them after the session got closed.

# Structs

DialOptions are used to overwrite default behavior of the websocket session.
ErrSession is returned by Send/Recv methods when the underlying session state change is responsible for the failure.
WebsocketSession represents a sockjs.Session over a websocket connection.
XHRSession implements sockjs.Session with XHR transport.