From 24e8247213c875563e1c141256dd15ca25ed2e91 Mon Sep 17 00:00:00 2001
From: ishaanlabs-gg <64529428+ishaanlabs-gg@users.noreply.github.com>
Date: Thu, 2 Jul 2026 22:42:29 +0530
Subject: [PATCH] [AI] Update WebSocket async docs
ai-assisted-by: OpenAI Codex (GPT-5)
License: public domain
---
docs/async.rst | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/docs/async.rst b/docs/async.rst
index 6f3c1ea6..c0b5e963 100644
--- a/docs/async.rst
+++ b/docs/async.rst
@@ -85,6 +85,8 @@ Lets forget about the low-level details for a while and speak about WebSockets.
Thankfully the `gevent-websocket `_ package does all the hard work for us. Here is a simple WebSocket endpoint that receives messages and just sends them back to the client::
+ from gevent import monkey; monkey.patch_all()
+
from bottle import request, Bottle, abort
app = Bottle()
@@ -110,6 +112,21 @@ Thankfully the `gevent-websocket
@@ -126,4 +143,3 @@ The client-site JavaScript API is really straight forward, too::