(onprogress?: (loaded: number, total: number) => void)
| 121 | } |
| 122 | |
| 123 | start_onprogress(onprogress?: (loaded: number, total: number) => void): void { |
| 124 | let total = this.ws.bufferedAmount; |
| 125 | let onprogressID = setInterval(() => { |
| 126 | let loaded = total - this.ws.bufferedAmount; |
| 127 | onprogress(loaded, total); |
| 128 | if (this.ws.bufferedAmount == 0) |
| 129 | clearInterval(onprogressID); |
| 130 | }, 200); |
| 131 | } |
| 132 | |
| 133 | send_message(msg: ClientEvent, onprogress?: (loaded: number, total: number) => void): void { |
| 134 | if (this.closed()) |
no outgoing calls
no test coverage detected