From d7874a495dcfc3ed07df25f0fe8eb28c4d176f09 Mon Sep 17 00:00:00 2001 From: Will Rieger Date: Tue, 28 Nov 2023 20:46:10 -0500 Subject: [PATCH] add clarification --- docs/websockets-backpressure.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/websockets-backpressure.md b/docs/websockets-backpressure.md index 6b722c0..fd49713 100644 --- a/docs/websockets-backpressure.md +++ b/docs/websockets-backpressure.md @@ -71,6 +71,8 @@ You should use the provided user data feature to store and attach any per-socket If you want to create something more elaborate you could have the user data hold a pointer to some dynamically allocated memory block that keeps a boolean whether the WebSocket is still valid or not. Sky is the limit here. +In order to do so, use the `upgrade` callback configuration in the `app.ws` settings. + Example: ```python from socketify import App, WebSocket, OpCode