Expose network state to iOS bridge
This commit is contained in:
@@ -26,6 +26,10 @@ public actor UniFfiSessionBridge: SessionBridge {
|
||||
Self.mapAuthState(handle.authState())
|
||||
}
|
||||
|
||||
public func networkState() async throws -> NetworkState {
|
||||
Self.mapNetworkState(handle.networkState())
|
||||
}
|
||||
|
||||
public func pollEvents() async throws -> [SessionEvent] {
|
||||
handle.pollEvents().map(Self.mapEvent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user