Replies: 8 comments
-
This is a very good point. I guess you need that both on the client and server side? |
Beta Was this translation helpful? Give feedback.
-
@majek I don't need it on the server. Any compliant node websocket client should already have it. |
Beta Was this translation helpful? Give feedback.
-
do any node websocket clients expose |
Beta Was this translation helpful? Give feedback.
-
They should. Websockets do. Not sure of any ws abstraction that exposes it. |
Beta Was this translation helpful? Give feedback.
-
@Raynos |
Beta Was this translation helpful? Give feedback.
-
@arlolra it's trivial to get access to it by reading |
Beta Was this translation helpful? Give feedback.
-
Is there an equivalent concept to |
Beta Was this translation helpful? Give feedback.
-
Not that I'm aware of. |
Beta Was this translation helpful? Give feedback.
-
bufferedAmount
exposes how much of the data is being buffered right now.If you want to implement some kind of backpressure mechanism with say high and low watermarks you would need to check
bufferedAmount
> high mark and apply back pressure then emit some kind of"drain"
event whenbufferedAmount
< low mark.To do this sockJS needs to expose this information.
Beta Was this translation helpful? Give feedback.
All reactions