max-mapper / websocket-stream

websockets with the node stream API
BSD 2-Clause "Simplified" License
667 stars 114 forks source link

Question: when will I know writes are being throttled? #115

Open binarykitchen opened 7 years ago

binarykitchen commented 7 years ago

This in relation to the browserBufferSize option so that I can fine tune it for my videomail app.

mcollina commented 7 years ago

At this point there is no way to know. However, you can send a PR and add this feature:

https://github.com/maxogden/websocket-stream/blob/master/stream.js#L118-L121.

The problem is that ws.send() does not have a callback in the browser.