closeOnBackpressureLimit
option type
#1722
-
Hi there, First of all, I just wanted to say how much I appreciate the uWebSocket.js library. It's been incredibly helpful in building high-performance WebSocket applications, and the documentation and community support have been fantastic. Thank you for all the hard work you've put into this project _/\_ ! I'm using uWebSocket.js in my project and I have a question about one of the options that can be passed when creating the app. In the interface WebSocketBehavior<UserData> {
// ....
/** Whether or not we should automatically close the socket when a message is dropped due to backpressure. Defaults to false. */
closeOnBackpressureLimit?: number;
// ...
} The comment suggests that this option is a However, the type of So my question is: How should I interpret and use this option?
I'd appreciate if someone could clarify the intended usage and meaning of this option. Thanks in advance for your help <3 ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This was recently fixed in documentation, for now you can pass 1 for true 0 for false |
Beta Was this translation helpful? Give feedback.
This was recently fixed in documentation, for now you can pass 1 for true 0 for false