* Pause the socket. * * @public
()
| 345 | * @public |
| 346 | */ |
| 347 | pause() { |
| 348 | if ( |
| 349 | this.readyState === WebSocket.CONNECTING || |
| 350 | this.readyState === WebSocket.CLOSED |
| 351 | ) { |
| 352 | return; |
| 353 | } |
| 354 | |
| 355 | this._paused = true; |
| 356 | this._socket.pause(); |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * Send a ping. |
no outgoing calls
no test coverage detected