Hi Parse Community,
I’m having trouble to do two features with Parse. I’ve been exploring documentation, APIs and code source and I can’t find how to do these :
- If I revoke a sessionToken in the backend (so for example I remove a row of a currently logged in user), is there an event I can catch on the frontend to automatically force a logout
I tried to activate LiveQuery on the
_Session class but if I try to log in I’m getting this error:
Error: Cannot modify readonly attribute: sessionToken
- I’d like to be able to know the users who have an opened WebSocket connection with the parse server. Basically I’d like to be able to list the connected Users. Which is not equivalent to the Sessions since a Session is not deleted if a WebSocket is closed by the client.
I see in the source code that the
parseWebSocketServer keeps a list of clients. I’m wondering if it’s possible to use it to retrieve those users.
Thanks in advance.