with web sockets
# support-questions
l
@rp Hi, Is there a way to use the
supertokens_python.recipe.session.asyncio.get_session
function with
starlette.websockets.WebSocket
?
r
hey @Luxaaa
there is no way to use that at the moment for web sockets. You should enable JWTs in our session and then fetch the JWT on the frontend and use that in the websocket event message instead. On the backend, you can verify the JWT using any jwt verification lib.
l
Okay, thank you very much. It is working now. I am sending the jwt in websocket connection params to the backend.