Skip to content

Commit

Permalink
chore: Remove deprecated userId from Atmosphere (#9720)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch committed May 7, 2024
1 parent c71ec42 commit b4f21d6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/client/Atmosphere.ts
Expand Up @@ -110,8 +110,6 @@ export default class Atmosphere extends Environment {
upgradeTransportPromise: Promise<void> | null = null
// it's only null before login, so it's just a little white lie
viewerId: string = null!
/** @deprecated */
userId: string | null = null
tabCheckChannel?: BroadcastChannel
constructor() {
super({
Expand Down Expand Up @@ -414,8 +412,6 @@ export default class Atmosphere extends Environment {
} else {
this.viewerId = viewerId!
window.localStorage.setItem(LocalStorageKey.APP_TOKEN_KEY, authToken)
// deprecated! will be removed soon
this.userId = viewerId
}
}

Expand Down Expand Up @@ -519,6 +515,5 @@ export default class Atmosphere extends Environment {
this.querySubscriptions = []
this.subscriptions = {}
this.viewerId = null!
this.userId = null // DEPRECATED
}
}

0 comments on commit b4f21d6

Please sign in to comment.