-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update WASM bindings #1122
Update WASM bindings #1122
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
encryption_key: Option<Uint8Array>, | ||
history_sync_url: Option<String>, | ||
) -> Result<WasmClient, JsError> { | ||
xmtp_mls::utils::wasm::init().await; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we shouldn't include the tracing setup in prod, instead we should come up with some system similar to the bindings_ffi
to pass a logger from javascript/let the client sdk setup logging by calling the init fn themselves. Could be a good followup issue since it's not necessary yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! We should just remove wasm::init
xmtp_mls = { path = "../xmtp_mls", features = ["message-history"] } | ||
xmtp_mls = { path = "../xmtp_mls", features = [ | ||
"message-history", | ||
"test-utils", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not enable this feature/remove the wasm::init()
fn
Summary
This PR adds more WASM bindings to match our other bindings. Tests and CI workflows to follow.