(statusOrSignal, coreDumped, msg)
| 246 | } |
| 247 | |
| 248 | exit(statusOrSignal, coreDumped, msg) { |
| 249 | if (!this.server) |
| 250 | throw new Error('Server-only method called in client mode'); |
| 251 | |
| 252 | if (this.type === 'session' |
| 253 | && this.writable |
| 254 | && this.outgoing.state === 'open') { |
| 255 | if (typeof statusOrSignal === 'number') { |
| 256 | this._client._protocol.exitStatus(this.outgoing.id, statusOrSignal); |
| 257 | } else { |
| 258 | this._client._protocol.exitSignal(this.outgoing.id, |
| 259 | statusOrSignal, |
| 260 | coreDumped, |
| 261 | msg); |
| 262 | } |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | } |
| 267 |
no test coverage detected