EventApi
Methods
emitEvent(in:to:on:containing:)
Emits a new Custom Event
Params
contextId
String
id of the Context in which the Event will be emited
users
[privmx.endpoint.core.UserWithPubKey]
users that will receive the Event
channelName
String
channel name on which the event will be emitted
eventData
Data
arbitrary payload of the Event
subscribeForCustomEvents(in:onChannel:)
Subscribes to Custom Events in a specific Context, that arrive on a specific, named Channel
Params
contextId
String
id of the Context
channelName
String
arbitrary name of the channel
unsubscribeFromCustomEvents(in:onChannel:)
Unsbscribes from Custom Events in a specific Context, that arrive on a specific, named Channel
Params
contextId
String
id of the Context
channelName
String
arbitrary name of the channel
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.
PrivMX Endpoint Swift v2.3