From 84842e39c360a8b3ddf36feac8af201fb19bbb0b Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Tue, 26 Dec 2023 20:00:07 +0000 Subject: [PATCH] Improvements to migration guide --- docs/migrating.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/migrating.rst b/docs/migrating.rst index e12855a..71b6e95 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -39,7 +39,7 @@ extension. Any applications built using the asyncio extension will need to update their imports from this:: - from microdot.asyncio import Microdot + from microdot_asyncio import Microdot to this:: @@ -94,7 +94,7 @@ as a single string:: Streamed templates also have an asynchronous version:: - return await Template('index.html').generate_async(title='Home') + return Template('index.html').generate_async(title='Home') Class-based user sessions ~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -138,5 +138,8 @@ deployed with standard WSGI servers such as Gunicorn. WebSocket support when using the WSGI extension is enabled when using a compatible web server. At this time only Gunicorn is supported for WebSocket. +Given that WebSocket support is asynchronous, it would be better to switch to +the ASGI extension, which has full support for WebSocket as defined in the ASGI +specification. As before, the WSGI extension is not available under MicroPython.