-
Notifications
You must be signed in to change notification settings - Fork 2
qchat.server.QChatServerModule
qchat/server.QChatServerModule
-
EventEmitter
<QChatServerEvents
>↳
QChatServerModule
- eventNames
- listeners
- listenerCount
- emit
- on
- addListener
- once
- removeListener
- off
- removeAllListeners
- initEventHandlers
- createServer
- deleteServer
- updateServer
- enterAsVisitor
- leaveAsVisitor
- subscribe
- subscribeAsVisitor
- subscribeAllChannel
- markRead
- getServers
- getServersByPage
- invite
- acceptInvite
- rejectInvite
- apply
- acceptApply
- rejectApply
- kick
- leave
- updateMemberInfo
- getServerMembers
- getServerMembersByPage
- banMember
- unbanMember
- getBannedMembersByPage
- serverSearchByPage
- serverMemberSearch
- generateInviteCode
- joinByInviteCode
- getInviteApplyRecordOfServer
- getInviteApplyRecordOfSelf
▸ eventNames(): "unread"
[]
Return an array listing the events for which the emitter has registered listeners.
"unread"
[]
EventEmitter.eventNames
node_modules/eventemitter3/index.d.ts:15
▸ listeners<T
>(event
): (...args
: ArgumentMap
<QChatServerEvents
>[Extract
<T
, "unread"
>]) => void
[]
Return the listeners registered for a given event.
Name | Type |
---|---|
T |
extends "unread"
|
Name | Type |
---|---|
event |
T |
(...args
: ArgumentMap
<QChatServerEvents
>[Extract
<T
, "unread"
>]) => void
[]
EventEmitter.listeners
node_modules/eventemitter3/index.d.ts:20
▸ listenerCount(event
): number
Return the number of listeners listening to a given event.
Name | Type |
---|---|
event |
"unread" |
number
EventEmitter.listenerCount
node_modules/eventemitter3/index.d.ts:27
▸ emit<T
>(event
, ...args
): boolean
Calls each of the listeners registered for a given event.
Name | Type |
---|---|
T |
extends "unread"
|
Name | Type |
---|---|
event |
T |
...args |
ArgumentMap <QChatServerEvents >[Extract <T , "unread" >] |
boolean
EventEmitter.emit
node_modules/eventemitter3/index.d.ts:32
▸ on<T
>(event
, fn
, context?
): QChatServerModule
Add a listener for a given event.
Name | Type |
---|---|
T |
extends "unread"
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatServerEvents >[Extract <T , "unread" >]) => void
|
context? |
any |
EventEmitter.on
node_modules/eventemitter3/index.d.ts:40
▸ addListener<T
>(event
, fn
, context?
): QChatServerModule
Name | Type |
---|---|
T |
extends "unread"
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatServerEvents >[Extract <T , "unread" >]) => void
|
context? |
any |
EventEmitter.addListener
node_modules/eventemitter3/index.d.ts:45
▸ once<T
>(event
, fn
, context?
): QChatServerModule
Add a one-time listener for a given event.
Name | Type |
---|---|
T |
extends "unread"
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatServerEvents >[Extract <T , "unread" >]) => void
|
context? |
any |
EventEmitter.once
node_modules/eventemitter3/index.d.ts:54
▸ removeListener<T
>(event
, fn?
, context?
, once?
): QChatServerModule
Remove the listeners of a given event.
Name | Type |
---|---|
T |
extends "unread"
|
Name | Type |
---|---|
event |
T |
fn? |
(...args : ArgumentMap <QChatServerEvents >[Extract <T , "unread" >]) => void
|
context? |
any |
once? |
boolean |
EventEmitter.removeListener
node_modules/eventemitter3/index.d.ts:63
▸ off<T
>(event
, fn?
, context?
, once?
): QChatServerModule
Name | Type |
---|---|
T |
extends "unread"
|
Name | Type |
---|---|
event |
T |
fn? |
(...args : ArgumentMap <QChatServerEvents >[Extract <T , "unread" >]) => void
|
context? |
any |
once? |
boolean |
EventEmitter.off
node_modules/eventemitter3/index.d.ts:69
▸ removeAllListeners(event?
): QChatServerModule
Remove all listeners, or those of the specified event.
Name | Type |
---|---|
event? |
"unread" |
EventEmitter.removeAllListeners
node_modules/eventemitter3/index.d.ts:79
▸ initEventHandlers(): void
注册全局回调
void
ts/qchat/server.ts:81
▸ createServer(param
): Promise
<QChatServerCreateResp
>
Fn
createServer(param: QChatServerCreateParam) 创建服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerCreateParam |
Promise
<QChatServerCreateResp
>
void
ts/qchat/server.ts:89
▸ deleteServer(param
): Promise
<QChatBaseResp
>
Fn
deleteServer(param: QChatServerDeleteParam) 删除服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerDeleteParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:104
▸ updateServer(param
): Promise
<QChatServerCreateResp
>
Fn
updateServer(param: QChatServerUpdateParam) 更新服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerUpdateParam |
Promise
<QChatServerCreateResp
>
void
ts/qchat/server.ts:119
▸ enterAsVisitor(param
): Promise
<QChatServerEnterAsVisitorResp
>
Fn
enterAsVisitor(param: QChatServerEnterAsVisitorParam) 以游客身份进入服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerEnterAsVisitorParam |
Promise
<QChatServerEnterAsVisitorResp
>
void
ts/qchat/server.ts:134
▸ leaveAsVisitor(param
): Promise
<QChatServerLeaveAsVisitorResp
>
Fn
leaveAsVisitor(param: QChatServerLeaveAsVisitorParam) 以游客身份离开服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerLeaveAsVisitorParam |
Promise
<QChatServerLeaveAsVisitorResp
>
void
ts/qchat/server.ts:149
▸ subscribe(param
): Promise
<QChatServerSubscribeResp
>
Fn
subscribe(param: QChatServerSubscribeParam) 订阅指定服务器下的系统通知消息 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerSubscribeParam |
Promise
<QChatServerSubscribeResp
>
void
ts/qchat/server.ts:164
▸ subscribeAsVisitor(param
): Promise
<QChatServerSubscribeAsVisitorResp
>
Fn
subscribeAsVisitor(param: QChatServerSubscribeAsVisitorParam) 以游客模式订阅服务器下的系统通知消息 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerSubscribeAsVisitorParam |
Promise
<QChatServerSubscribeAsVisitorResp
>
void
ts/qchat/server.ts:179
▸ subscribeAllChannel(param
): Promise
<QChatServerSubscribeAllChannelResp
>
Fn
subscribeAllChannel(param: QChatServerSubscribeAllChannelParam) 订阅服务器下所有频道的消息 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerSubscribeAllChannelParam |
Promise
<QChatServerSubscribeAllChannelResp
>
void
ts/qchat/server.ts:194
▸ markRead(param
): Promise
<QChatServerMarkReadResp
>
Fn
void MarkRead(const QChatServerMarkReadParam& param) 标记服务器下所有频道的消息为已读 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerMarkReadParam |
Promise
<QChatServerMarkReadResp
>
void
ts/qchat/server.ts:209
▸ getServers(param
): Promise
<QChatServerGetServersResp
>
Fn
getServers(param: QChatServerGetServersParam) 查询服务器列表 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerGetServersParam |
Promise
<QChatServerGetServersResp
>
void
ts/qchat/server.ts:224
▸ getServersByPage(param
): Promise
<QChatServerGetServersPageResp
>
Fn
getServersByPage(param: QChatServerGetServersPageParam) 查询服务器列表(分页) @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerGetServersPageParam |
Promise
<QChatServerGetServersPageResp
>
void
ts/qchat/server.ts:239
▸ invite(param
): Promise
<QChatServerInviteResp
>
Fn
invite(param: QChatServerInviteParam) 邀请用户加入服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerInviteParam |
Promise
<QChatServerInviteResp
>
void
ts/qchat/server.ts:254
▸ acceptInvite(param
): Promise
<QChatBaseResp
>
Fn
acceptInvite(param: QChatServerAcceptInviteParam) 接受加入服务器邀请 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerAcceptInviteParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:269
▸ rejectInvite(param
): Promise
<QChatBaseResp
>
Fn
rejectInvite(param: QChatServerRejectInviteParam) 拒绝加入服务器邀请 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerRejectInviteParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:284
▸ apply(param
): Promise
<QChatServerApplyResp
>
Fn
apply(param: QChatServerApplyParam) 申请加入服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerApplyParam |
Promise
<QChatServerApplyResp
>
void
ts/qchat/server.ts:299
▸ acceptApply(param
): Promise
<QChatBaseResp
>
Fn
acceptApply(param: QChatServerAcceptApplyParam) 同意加入服务器申请 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerAcceptApplyParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:314
▸ rejectApply(param
): Promise
<QChatBaseResp
>
Fn
rejectApply(param: QChatServerRejectApplyParam) 拒绝加入服务器申请 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerRejectApplyParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:329
▸ kick(param
): Promise
<QChatBaseResp
>
Fn
kick(param: QChatServerKickParam) 将指定用户踢出服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerKickParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:344
▸ leave(param
): Promise
<QChatBaseResp
>
Fn
leave(param: QChatServerLeaveParam) 离开指定服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerLeaveParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:359
▸ updateMemberInfo(param
): Promise
<QChatBaseResp
>
Fn
updateMemberInfo(param: QChatServerUpdateMemberInfoParam) 更新服务器成员信息 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerUpdateMemberInfoParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:374
▸ getServerMembers(param
): Promise
<QChatServerGetMembersResp
>
Fn
getServerMembers(param: QChatServerGetMembersParam) 查询服务器成员列表 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerGetMembersParam |
Promise
<QChatServerGetMembersResp
>
void
ts/qchat/server.ts:389
▸ getServerMembersByPage(param
): Promise
<QChatServerGetMembersPageResp
>
Fn
getServerMembersByPage(param: QChatServerGetMembersPageParam) 查询服务器成员列表(分页) @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerGetMembersPageParam |
Promise
<QChatServerGetMembersPageResp
>
void
ts/qchat/server.ts:404
▸ banMember(param
): Promise
<QChatBaseResp
>
Fn
banMember(param: QChatServerBanMemberParam) 封禁服务器成员 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerBanMemberParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:419
▸ unbanMember(param
): Promise
<QChatBaseResp
>
Fn
unbanMember(param: QChatServerUnbanMemberParam) 解封服务器成员 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerUnbanMemberParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:434
▸ getBannedMembersByPage(param
): Promise
<QChatServerGetBannedMembersPageResp
>
Fn
getBannedMembersByPage(param: QChatServerGetBannedMembersPageParam) 查询服务器封禁成员列表(分页) @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerGetBannedMembersPageParam |
Promise
<QChatServerGetBannedMembersPageResp
>
void
ts/qchat/server.ts:449
▸ serverSearchByPage(param
): Promise
<QChatServerGetServersPageResp
>
Fn
serverSearchByPage(param: QChatServerSearchPageParam) 根据关键字搜索服务器(分页) @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerSearchPageParam |
Promise
<QChatServerGetServersPageResp
>
void
ts/qchat/server.ts:464
▸ serverMemberSearch(param
): Promise
<QChatServerGetMembersResp
>
Fn
serverMemberSearch(param: QChatServerMemberSearchParam) 根据关键字搜索服务器成员 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerMemberSearchParam |
Promise
<QChatServerGetMembersResp
>
void
ts/qchat/server.ts:479
▸ generateInviteCode(param
): Promise
<QChatServerGenerateInviteCodeResp
>
Fn
generateInviteCode(param: QChatServerGenerateInviteCodeParam) 生成服务器邀请码 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerGenerateInviteCodeParam |
Promise
<QChatServerGenerateInviteCodeResp
>
void
ts/qchat/server.ts:494
▸ joinByInviteCode(param
): Promise
<QChatBaseResp
>
Fn
joinByInviteCode(param: QChatServerJoinByInviteCodeParam) 通过邀请码加入服务器 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerJoinByInviteCodeParam |
Promise
<QChatBaseResp
>
void
ts/qchat/server.ts:509
▸ getInviteApplyRecordOfServer(param
): Promise
<QChatServerGetInviteApplyRecordOfServerResp
>
Fn
getInviteApplyRecordOfServer(param: QChatServerGetInviteApplyRecordOfServerParam) 查询服务器下邀请申请历史 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerGetInviteApplyRecordOfServerParam |
Promise
<QChatServerGetInviteApplyRecordOfServerResp
>
void
ts/qchat/server.ts:524
▸ getInviteApplyRecordOfSelf(param
): Promise
<QChatServerGetInviteApplyRecordOfServerResp
>
Fn
getInviteApplyRecordOfSelf(param: QChatServerGetInviteApplyRecordOfSelfParam) 查询自己邀请申请历史 @param[in] param 接口参数
Name | Type |
---|---|
param |
QChatServerGetInviteApplyRecordOfSelfParam |
Promise
<QChatServerGetInviteApplyRecordOfServerResp
>
void
ts/qchat/server.ts:539
• instance: any
ts/qchat/server.ts:75
• new QChatServerModule()
EventEmitter<QChatServerEvents>.constructor
ts/qchat/server.ts:76
- chatroom/chatroom
- chatroom_def/chatroom_def
- nim/client
- nim/data_sync
- nim/friend
- nim/global
- nim/msglog
- nim/nos
- nim/online_session
- nim/pass_through_proxy
- nim/plugin
- nim/session
- nim/subscribe_event
- nim/super_team
- nim/sysmsg
- nim/talk
- nim/talkex
- nim/team
- nim/tool
- nim/user
- nim_def/client_def
- nim_def/data_sync_def
- nim_def/doc_trans_def
- nim_def/friend_def
- nim_def/global_def
- nim_def/msglog_def
- nim_def/nos_def
- nim_def/online_session_def
- nim_def/pass_through_proxy_def
- nim_def/plugin_def
- nim_def/session_def
- nim_def/subscribe_event_def
- nim_def/super_team_def
- nim_def/sysmsg_def
- nim_def/talk_def
- nim_def/talkex_def
- nim_def/team_def
- nim_def/tool_def
- nim_def/user_def
- node-nim
- qchat/attachment
- qchat/channel
- qchat/channel_category
- qchat/instance
- qchat/message
- qchat/role
- qchat/server
- qchat/system_notification
- qchat_def/attachment_def
- qchat_def/channel_def
- qchat_def/instance_def
- qchat_def/message_def
- qchat_def/public_def
- qchat_def/role_def
- qchat_def/server_def
- qchat_def/system_notification_def