Closed simontorres closed 1 week ago
Good catch - regression from 14ca557f53cf19084eb64aef2e4563e5630c211b that changed import websockets; websockets.serve
to from websockets.asyncio.server import serve; serve
I fixed it a bit differently, by using the real import path rather than the shortcut.
Also I fixed a few other instances of this problem at the same time.
Thank you for reporting this problem!
When handling the ConnectionClosedOK exception the tutorial didn't mention the need to import websockets or just the exception