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

Method Close

sockjsclient/xhr.go:295–304  ·  view source on GitHub ↗
(status uint32, reason string)

Source from the content-addressed store, hash-verified

293}
294
295func (x *XHRSession) Close(status uint32, reason string) error {
296 x.setState(sockjs.SessionClosed)
297
298 select {
299 case x.abort <- struct{}{}:
300 default:
301 }
302
303 return nil
304}
305
306func (x *XHRSession) isClosed() bool {
307 return x.GetSessionState() == sockjs.SessionClosed

Callers 3

handleRespMethod · 0.95
SendMethod · 0.95
DialXHRFunction · 0.45

Calls 1

setStateMethod · 0.95

Tested by

no test coverage detected