MCPcopy Create free account
hub / github.com/koding/kite / NewWebsocketSession

Function NewWebsocketSession

sockjsclient/sockjsclient.go:181–185  ·  view source on GitHub ↗

NewWebsocketSession creates new sockjs.Session from existing websocket connection.

(conn *websocket.Conn)

Source from the content-addressed store, hash-verified

179// NewWebsocketSession creates new sockjs.Session from existing
180// websocket connection.
181func NewWebsocketSession(conn *websocket.Conn) *WebsocketSession {
182 return &WebsocketSession{
183 conn: conn,
184 }
185}
186
187// RemoteAddr gives network address of the remote client.
188func (w *WebsocketSession) RemoteAddr() string {

Callers 1

DialWebsocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected