馃悰 Bug Report: Realtime/Websocket stuck with previous user after new user has logined #24
Closed
2 tasks done
Labels
bug
Something isn't working
馃憻 Reproduction steps
Config/Setup:
Document Level
permissionuser:UserID
User A
, but NOTUser B
To reproduce:
Login as
User A
, e.g.sdk.account.createSession(User A email, User A password)
At a React page, using WebSDK to subscribe to a channel like so
Update any of the documents on the said collection from Appwrite Console, and I can noticed data is received, and channel/subscription callback is executed
User A
logout,unsubscribe()
is fired, and thenUser A
is logout like sosdk.account.deleteSession('current')
/sdk.account.deleteSession(session_id)
At the same browser tab,
User B
login, e.g.sdk.account.createSession(User B email, User B password)
, and visit the same page, so step 2 above is executed as wellNOTE: Don't refresh browser page, if you have refreshed browser page you can't reproduce the issue
Update any of the documents on the said collection from Appwrite Console, and I can noticed data is received, and channel/subscription callback is executed, which is not expected behaviour as only
User A
has read permission, notUser B
馃憤 Expected behavior
I should not receive any channel/subscription callback when I login as
User B
馃憥 Actual Behavior
I receive channel/subscription callback when I login as
User B
, butUser B
doesn't have any read permission on the subscribed data collection (Where the callback response data is forUser A
)馃幉 Appwrite version
Different version (specify in environment)
馃捇 Operating system
Linux
馃П Your Environment
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: