-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add WebSocket client support for WASM #1
Conversation
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.
First review iteration, checked all code, will do another final check after the fixes! Please fix clippy, fmt and add a toolchain file.
These are the command as retrieved from ci.yaml
cargo +nightly fmt --all
cargo clippy --workspace --all-features --all-targets -- -D warnings
P.S. we can enable github actions for this repo, will need to review the ci config files first.
chrono = { version = "0.4", default-features = false, features = ["alloc", "std"] } | ||
thiserror = "1.0" | ||
tokio = { version = "1.22", features = ["sync", "macros"] } | ||
tokio-tungstenite-wasm = { git = "https://github.com/KomodoPlatform/tokio-tungstenite-wasm.git", rev = "8fc7e2f" } |
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.
Please note that we use a different revision in kdf https://github.com/KomodoPlatform/komodo-defi-framework/blob/8b1170d9f33208e1c260d94d9ef9a7eb492e1047/mm2src/coins/Cargo.toml#L112
You will need to update the kdf revision when you integrate this client in kdf.
@borngraced related to this #1 (review) fmt is not fixed yet. |
@borngraced I updated CI to run on PRs opened to kdf, please review the changes and fix CI problems (fmt, PR title, etc..) |
done @shamardy |
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.
🔥
Description
This pull request updates the crate to allow WebSocket client support for WebAssembly (WASM). Changes include:
http
feature to enable or disablehttp client with reqwest crate
inrelay_client
These updates will enable users to utilize WebSocket client capabilities in WASM.
Resolves # (issue)
How Has This Been Tested?
Due Diligence