()
| 753 | } |
| 754 | |
| 755 | resetPing() { |
| 756 | this.stopPing(); |
| 757 | const socket = this.socket; |
| 758 | this.messageLastReceived = Date.now(); |
| 759 | this.pingTimeoutID = setTimeout(() => { |
| 760 | if (this.socket === socket) { |
| 761 | void this.sendPing(); |
| 762 | } |
| 763 | }, pingFrequency); |
| 764 | } |
| 765 | |
| 766 | async sendPing() { |
| 767 | if (this.props.connection.status !== 'connected') { |
no test coverage detected