@simplito/privmx-webendpoint 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/EventApiNative.d.ts +1 -1
- package/package.json +1 -1
- package/service/EventApi.d.ts +2 -2
- package/service/EventApi.js +3 -3
package/api/EventApiNative.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class EventApiNative extends BaseNative {
|
|
|
14
14
|
newApi(connectionPtr: number): Promise<number>;
|
|
15
15
|
deleteApi(ptr: number): Promise<void>;
|
|
16
16
|
create(ptr: number, args: []): Promise<void>;
|
|
17
|
-
emitEvent(ptr: number, args: [string, string, Uint8Array
|
|
17
|
+
emitEvent(ptr: number, args: [string, UserWithPubKey[], string, Uint8Array]): Promise<void>;
|
|
18
18
|
subscribeFor(ptr: number, args: [string[]]): Promise<string[]>;
|
|
19
19
|
unsubscribeFrom(ptr: number, args: [string[]]): Promise<void>;
|
|
20
20
|
buildSubscriptionQuery(ptr: number, args: [string, EventsEventSelectorType, string]): Promise<string>;
|
package/package.json
CHANGED
package/service/EventApi.d.ts
CHANGED
|
@@ -18,11 +18,11 @@ export declare class EventApi extends BaseApi {
|
|
|
18
18
|
* Emits the custom event on the given Context and channel.
|
|
19
19
|
*
|
|
20
20
|
* @param {string} contextId ID of the Context
|
|
21
|
+
* @param {UserWithPubKey[]} users list of UserWithPubKey objects which defines the recipients of the event
|
|
21
22
|
* @param {string} channelName name of the Channel
|
|
22
23
|
* @param {Uint8Array} eventData event's data
|
|
23
|
-
* @param {UserWithPubKey[]} users list of UserWithPubKey objects which defines the recipients of the event
|
|
24
24
|
*/
|
|
25
|
-
emitEvent(contextId: string, channelName: string, eventData: Uint8Array
|
|
25
|
+
emitEvent(contextId: string, users: UserWithPubKey[], channelName: string, eventData: Uint8Array): Promise<void>;
|
|
26
26
|
/**
|
|
27
27
|
* Subscribe for the custom events on the given subscription query.
|
|
28
28
|
*
|
package/service/EventApi.js
CHANGED
|
@@ -31,12 +31,12 @@ class EventApi extends BaseApi_1.BaseApi {
|
|
|
31
31
|
* Emits the custom event on the given Context and channel.
|
|
32
32
|
*
|
|
33
33
|
* @param {string} contextId ID of the Context
|
|
34
|
+
* @param {UserWithPubKey[]} users list of UserWithPubKey objects which defines the recipients of the event
|
|
34
35
|
* @param {string} channelName name of the Channel
|
|
35
36
|
* @param {Uint8Array} eventData event's data
|
|
36
|
-
* @param {UserWithPubKey[]} users list of UserWithPubKey objects which defines the recipients of the event
|
|
37
37
|
*/
|
|
38
|
-
async emitEvent(contextId, channelName, eventData
|
|
39
|
-
return this.native.emitEvent(this.servicePtr, [contextId, channelName, eventData
|
|
38
|
+
async emitEvent(contextId, users, channelName, eventData) {
|
|
39
|
+
return this.native.emitEvent(this.servicePtr, [contextId, users, channelName, eventData]);
|
|
40
40
|
}
|
|
41
41
|
// /**
|
|
42
42
|
// * Subscribe for the custom events on the given channel.
|