EventApi
Manages PrivMX Bridge custom events.
Constructors
EventApi
Initialize Event module on passed active connection.
Params
connection
Connection
active connection to PrivMX Bridge
Methods
buildSubscriptionQuery
Generate subscription Query for the custom events.
Params
channelName
String
name of the Channel
selectorType
CustomEventSelectorType
selector of scope on which you listen for events
selectorId
String
ID of the selector
Returns
String ·
Query for subscribing event
close
Frees memory.
emitEvent
Emits the custom event on the given Context and channel.
Params
contextId
String
ID of the Context
users
List<UserWithPubKey>
list of UserWithPubKey objects which defines the recipients of the event
channelName
String
name of the Channel
eventData
byte[]
event's data
subscribeFor
Subscribe for the custom events on the given subscription query.
Params
subscriptionQueries
List<String>
list of queries
Returns
List<String> ·
list of subscriptionIds in matching order to subscriptionQueries
unsubscribeFrom
Unsubscribe from events for the given subscriptionId.
Params
subscriptionIds
List<String>
list of subscriptionId
We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.
PrivMX Endpoint Java v2.6