Added the user-room token created from admin when we access a room
This commit is contained in:
parent
9eb4206fe0
commit
dd79f7d0f4
13 changed files with 63 additions and 2 deletions
|
@ -68,6 +68,7 @@ export class RoomConnection implements RoomConnection {
|
|||
private static websocketFactory: null | ((url: string) => any) = null; // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
private closed: boolean = false;
|
||||
private tags: string[] = [];
|
||||
private _userRoomToken: string | undefined;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
public static setWebsocketFactory(websocketFactory: (url: string) => any): void {
|
||||
|
@ -211,6 +212,7 @@ export class RoomConnection implements RoomConnection {
|
|||
|
||||
this.userId = roomJoinedMessage.getCurrentuserid();
|
||||
this.tags = roomJoinedMessage.getTagList();
|
||||
this._userRoomToken = roomJoinedMessage.getUserroomtoken();
|
||||
|
||||
this.dispatch(EventMessage.CONNECT, {
|
||||
connection: this,
|
||||
|
@ -710,4 +712,8 @@ export class RoomConnection implements RoomConnection {
|
|||
public getAllTags(): string[] {
|
||||
return this.tags;
|
||||
}
|
||||
|
||||
public get userRoomToken(): string | undefined {
|
||||
return this._userRoomToken;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue