()
| 274 | }; |
| 275 | |
| 276 | function handleClose() { |
| 277 | if (__DEBUG__) { |
| 278 | debug('WebSocket.onclose'); |
| 279 | } |
| 280 | |
| 281 | if (bridge !== null) { |
| 282 | bridge.emit('shutdown'); |
| 283 | } |
| 284 | |
| 285 | scheduleRetry(); |
| 286 | } |
| 287 | |
| 288 | function handleFailed() { |
| 289 | if (__DEBUG__) { |
nothing calls this directly
no test coverage detected