Properties
Private Readonly _context
_context: default
Private _id
_id: string
Constructors
constructor
- new Chatroom(context: default, id: string, logger: ILogger): Chatroom
Parameters
context: default
id: string
logger: ILogger
Methods
join
- join(options: { count: number }): Promise<void>
Parameters
options: { count: number }
Returns Promise<void>
joinExist
- joinExist(options: { count: number }): Promise<void>
Parameters
options: { count: number }
Returns Promise<void>
quit
Returns Promise<void>
getInfo
- getInfo(options?: { count?: number; order?: 0 | 1 | 2 }): Promise<IChatroomInfo>
Parameters
options: { count?: number; order?: 0 | 1 | 2 } = {}
Optional count?: number
Optional order?: 0 | 1 | 2
setEntry
Parameters
Returns Promise<void>
setEntries
Parameters
Returns Promise<void>
forceSetEntry
Parameters
Returns Promise<void>
removeEntry
Parameters
Returns Promise<void>
removeEntries
- removeEntries(options: { entries: string[] }): Promise<void>
Parameters
options: { entries: string[] }
Returns Promise<void>
forceRemoveEntry
Parameters
Returns Promise<void>
getEntry
- getEntry(key: string): Promise<string | number | boolean>
Parameters
Returns Promise<string | number | boolean>
getAllEntries
- getAllEntries(): Promise<{}>
Returns Promise<{}>
send
Parameters
getMessages
Parameters
recall
- recall(options: { messageUId: string; sentTime: number; user?: {} }): Promise<IAReceivedMessage>
Parameters
options: { messageUId: string; sentTime: number; user?: {} }
messageUId: string
sentTime: number
Optional user?: {}
加入聊天室