xmtp / libxmtp

MIT License
33 stars 13 forks source link

Update V2 Rust Streaming to Callbacks #859

Closed nplasterer closed 6 days ago

nplasterer commented 1 week ago

The V2 rust subscribe methods https://github.com/xmtp/libxmtp/blob/03b1a89e70fe5b4b016f758963116d2ac2f41fa1/bindings_ffi/src/v2.rs#L366-L372

Do not implement the callback structure like the V3 methods do making it nearly impossible to use in Android. Can we get these streaming methods updated to perform more like the V3 stuff.

Here is how the V2 stuff is implemented in iOS. https://github.com/xmtp/xmtp-ios/blob/main/Sources/XMTPiOS/ApiClient.swift#L156-L178 Unfortunately that is very difficult/nearly impossible to do in Android.