Clarify how to handle web socket back pressure #160
-
The docs should be clearer about how to handle back pressure. Right now, the explanation is def ws_message(ws, message, opcode):
#Ok is false if backpressure was built up, wait for drain
ok = ws.send(message, opcode) But how should I wait for drain? Should I busy wait before returning from the call or wait in the next call or something else? |
Beta Was this translation helpful? Give feedback.
Answered by
cirospaciari
Aug 9, 2024
Replies: 1 comment 2 replies
-
You should queue this in some way and use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and to be clear in the future the user should not have to handle this manually is just bad DX