Open mllamazares opened 7 years ago
@mllamazing please submit your questions to websockets
library users/developers, e.g. on https://github.com/aaugustin/websockets
Your questions are not related to (low level) asyncio
library, but rather to (high level) websockets
library.
Also I can recommend to try to use aiohttp for websockets.
I have this code to interact with a websocket api using
async
andwebsokets
python libraries:So I have the following in main.py:
The problem is that it doesn't preserve the authorized session, so this is the output:
As you see, the login call are working ok, but when calling and sending the
hello
insendtest
function, the session is not the same.