MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / close_session

Method close_session

webiojs/src/session.ts:164–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 close_session(): void {
165 this._closed = true;
166 safe_poprun_callbacks(this._session_close_callbacks, 'session_close_callback');
167 try {
168 this.ws.close();
169 } catch (e) {
170 }
171 }
172
173 closed(): boolean {
174 return this._closed || this.ws.readyState === WebSocket.CLOSED || this.ws.readyState === WebSocket.CLOSING;

Callers

nothing calls this directly

Calls 2

safe_poprun_callbacksFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected