Methods
addEventListener
- addEventListener(type: string, listener: Function, thisArg: any, priority?: number): void
-
Parameters
-
type: string
-
listener: Function
-
thisArg: any
-
Default value priority: number = 0
Returns void
ban
- ban(duration: number, reason: string | null): void
-
Parameters
-
duration: number
-
reason: string | null
Returns void
deleteAttribute
- deleteAttribute(attrName: string, attrScope?: undefined | string): void
-
Parameters
-
attrName: string
-
Optional attrScope: undefined | string
Returns void
dispatchEvent
- dispatchEvent(event: Event): void
getAttribute
- getAttribute(attrName: string, attrScope?: undefined | string): string | null
-
Parameters
-
attrName: string
-
Optional attrScope: undefined | string
Returns string | null
getAttributes
- getAttributes(): {} | null
getAttributesByScope
- getAttributesByScope(scope?: undefined | string): {} | {} | null
-
Parameters
-
Optional scope: undefined | string
Returns {} | {} | null
getConnectTime
- getConnectTime(): number | null
getObservedRoomIDs
- getObservedRoomIDs(): string[] | null
getOccupiedRoomIDs
- getOccupiedRoomIDs(): string[] | null
getTimeOnline
- getTimeOnline(): number | null
isAdmin
- isAdmin(): boolean | null
isInRoom
- isInRoom(roomID: string): boolean | null
-
Parameters
Returns boolean | null
isObservingRoom
- isObservingRoom(roomID: string): boolean | null
-
Parameters
Returns boolean | null
removeEventListener
- removeEventListener(type: string, listener: Function, thisObj: any): void
-
Parameters
-
type: string
-
listener: Function
-
thisObj: any
Returns void
sendMessage
- sendMessage(messageName: string, ...args: string[]): void
-
Parameters
-
messageName: string
-
Rest ...args: string[]
Returns void
setAttribute
- setAttribute(attrName: string, attrValue: string, attrScope?: undefined | string, isShared?: boolean, evaluate?: boolean): void
-
Parameters
-
attrName: string
-
attrValue: string
-
Optional attrScope: undefined | string
-
Default value isShared: boolean = true
-
Default value evaluate: boolean = false
Returns void
setClientClass
- setClientClass<T>(scope: string, clientClass: {}, ...fallbackClasses: {}[]): void
-
Type parameters
Parameters
-
scope: string
-
clientClass: {}
-
Rest ...fallbackClasses: {}[]
Returns void
A base class for the creation of custom client classes. Note that CustomClient's composed Client instance is not available from within the CustomClient class's constructor method. Initialization code that requires access to the composed Client instance should be placed in an init() method in the CustomClient subclass.
Note that CustomClient's composed Client instance is not available from within the CustomClient class's constructor method. Initialization code that requires access to the composed Client instance should be placed in an init() method in the CustomClient subclass.