Methods
ban
- ban(duration: number, reason?: undefined | string): void
-
Parameters
-
duration: number
-
Optional reason: undefined | string
Returns void
deleteAttribute
- deleteAttribute(attrName: string, attrScope?: undefined | string): void
-
Parameters
-
attrName: string
-
Optional attrScope: undefined | string
Returns 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
getConnectionState
- getConnectionState(): number
getObservedRoomIDs
- getObservedRoomIDs(): string[]
getOccupiedRoomIDs
- getOccupiedRoomIDs(): string[]
isInRoom
- isInRoom(roomID: string): boolean
-
Parameters
Returns boolean
isObservingRoom
- isObservingRoom(roomID: string): boolean
-
Parameters
Returns boolean
sendMessage
- sendMessage(messageName: string, ...rest: any): void
-
Parameters
-
messageName: string
-
Rest ...rest: any
Returns void
setAttribute
- setAttribute(attrName: String, attrValue: String, attrScope: string, isShared: boolean, evaluate: boolean): void
-
Parameters
-
attrName: String
-
attrValue: String
-
attrScope: string
-
isShared: boolean
-
evaluate: boolean
Returns void
setClientClass
- setClientClass(scope: string, clientClass: any, ...fallbackClasses: any): void
-
Parameters
-
scope: string
-
clientClass: any
-
Rest ...fallbackClasses: any
Returns void
The interface implemented by all classes that wish to represent a client in the Orbiter API. The built-in Client class implements IClient, and is used to represent any client in an application that does not have a custom client class specified. Developers that wish to use a custom class, rather than Client, to represent clients in an Orbiter application must create a class that implements the IClient interface, and then assign that class as a custom client class via Client.setClientClass method, Room.setDefaultClientClass method, or ClientManager.setDefaultClientClass method.