Expose network state to iOS bridge

This commit is contained in:
Mikhail Kilin
2026-05-21 00:36:08 +03:00
parent 3e67e0d1b8
commit b3b02835b6
6 changed files with 43 additions and 1 deletions

View File

@@ -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)
}