Skip to content

nim_def.subscribe_event_def.NIMSubscribeEventAPI

Zvicii edited this page Nov 22, 2022 · 3 revisions

Interface: NIMSubscribeEventAPI

nim_def/subscribe_event_def.NIMSubscribeEventAPI

Table of contents

Methods

Methods

InitEventHandlers

InitEventHandlers(): void

Returns

void

Defined in

ts/nim_def/subscribe_event_def.ts:89


Publish

Publish(data, cb, jsonExtension): boolean

Parameters

Name Type
data EventData
cb null | PublishEventCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/subscribe_event_def.ts:91


Subscribe

Subscribe(eventType, ttl, syncType, accids, cb, jsonExtension): boolean

Parameters

Name Type
eventType NIMEventType
ttl number
syncType NIMEventSubscribeSyncEventType
accids string[]
cb null | SubscribeEventCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/subscribe_event_def.ts:93


UnSubscribe

UnSubscribe(eventType, accids, cb, jsonExtension): boolean

Parameters

Name Type
eventType NIMEventType
accids string[]
cb null | UnSubscribeEventCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/subscribe_event_def.ts:102


BatchUnSubscribe

BatchUnSubscribe(eventType, cb, jsonExtension): boolean

Parameters

Name Type
eventType NIMEventType
cb null | BatchUnSubscribeEventCallback
jsonExtension string

Returns

boolean

Defined in

ts/nim_def/subscribe_event_def.ts:104


QuerySubscribe

QuerySubscribe(eventType, accids, cb, jsonExtension): void

Parameters

Name Type
eventType NIMEventType
accids string[]
cb null | QuerySubscribeEventCallback
jsonExtension string

Returns

void

Defined in

ts/nim_def/subscribe_event_def.ts:106

Clone this wiki locally