()
| 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; |
nothing calls this directly
no test coverage detected