swifter
swifter copied to clipboard
WebSocket and bufferedCount
In the WebSocket API for html, they have a bufferedCount property that we can use to determine if we should send more messages or if we should wait. My app sends image frames from the screen, and I would like to drop frames instead of trying to send them all in case the connected client can’t receive them fast enough.