How to fix websockets.exceptions.ConnectionClosed: WebSocket connection closed in Python | DevErrors