Methods
publishEvent
- publishEvent(options: { broadcastType?: number; custom?: string; sync?: boolean; type: number; validTime?: number; value: number; done?: any }): void
Parameters
options: { broadcastType?: number; custom?: string; sync?: boolean; type: number; validTime?: number; value: number; done?: any }
Optional broadcastType?: number
Optional custom?: string
Optional sync?: boolean
type: number
Optional validTime?: number
value: number
done?:function
Returns void
querySubscribeEventsByAccounts
- querySubscribeEventsByAccounts(options: { accounts: string[]; type: number; done?: any }): void
Parameters
options: { accounts: string[]; type: number; done?: any }
accounts: string[]
type: number
done?:function
Returns void
querySubscribeEventsByType
- querySubscribeEventsByType(options: { type: number; done?: any }): void
Parameters
options: { type: number; done?: any }
type: number
done?:function
Returns void
subscribeEvent
- subscribeEvent(options: { accounts: string[]; subscribeTime?: number; sync?: boolean; type: number; done?: any }): void
Parameters
options: { accounts: string[]; subscribeTime?: number; sync?: boolean; type: number; done?: any }
accounts: string[]
Optional subscribeTime?: number
Optional sync?: boolean
type: number
done?:function
Returns void
unSubscribeEventsByAccounts
- unSubscribeEventsByAccounts(options: { accounts?: string[]; type: number; done?: any }): void
Parameters
options: { accounts?: string[]; type: number; done?: any }
Optional accounts?: string[]
type: number
done?:function
Returns void
unSubscribeEventsByType
- unSubscribeEventsByType(options: { type: number; done?: any }): void
Parameters
options: { type: number; done?: any }
type: number
done?:function
Returns void
事件相关 API
注:appkey 级别需要开通功能才可以启用。