PrivMX DOCS
API Reference/PrivMX Endpoint Swift Extra/Events

privmx.endpoint.core.LibConnectedEvent

Emitted after connection to the Bridge Server has been established

Static Methods

typeStr()

Returns the event type as a string. This method returns the constant string "libConnected", identifying the type of this event as libConnected.

public static func typeStr() -> String

Returns

String · A String representing the event type, in this case, "libConnected".

Methods

handleWith(cb:)

Handles the event by calling the provided callback with an optional argument. This implementation always passes nil to the callback.

Params

cb

@escaping (@Sendable @MainActor (_ data: Any?) async -> Void)

A closure that accepts an optional Any? argument, representing the data to be passed when the event is handled.

public func handleWith(
cb: @escaping(@Sendable @MainActor (_ data: Any?) async  -> Void)
) -> Void

getSubscriptionList()

Retrieves the list of Subscribtion Ids of the Event

public func getSubscriptionList(
) -> [String]

Returns

[String] ·

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.core.LibConnectedEvent | PrivMX Docs