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

Function NewXHRSession

sockjsclient/xhr.go:91–96  ·  view source on GitHub ↗

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.

(opts *DialOptions)

Source from the content-addressed store, hash-verified

89//
90// Deprecated: Use DialXHR instead.
91func NewXHRSession(opts *DialOptions) (*XHRSession, error) {
92 cfg := config.New()
93 cfg.XHR = opts.client()
94
95 return DialXHR(opts.BaseURL, cfg)
96}
97
98func (x *XHRSession) ID() string {
99 return x.sessionID

Callers

nothing calls this directly

Calls 2

DialXHRFunction · 0.85
clientMethod · 0.80

Tested by

no test coverage detected