mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 08:41:07 +00:00
Web_connection manual + web-sys::Websocket alternative
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -17,6 +17,13 @@ fn init_tracing() {
|
||||
tracing_wasm::set_as_global_default();
|
||||
}
|
||||
|
||||
// NOTE
|
||||
// run as: ` WASM_BINDGEN_TEST_TIMEOUT=40 wasm-pack test --firefox --headless`
|
||||
// run as: ` WASM_BINDGEN_TEST_TIMEOUT=40 wasm-pack test --firefox --headless`
|
||||
// run as: ` WASM_BINDGEN_TEST_TIMEOUT=40 wasm-pack test --firefox --headless`
|
||||
|
||||
|
||||
// NOTE: This is basic subxt:
|
||||
// #[wasm_bindgen_test]
|
||||
// async fn wasm_ws_transport_works() {
|
||||
// let client = subxt::client::OnlineClient::<PolkadotConfig>::from_url("ws://127.0.0.1:9944")
|
||||
@@ -27,6 +34,16 @@ fn init_tracing() {
|
||||
// assert_eq!(&chain, "Development");
|
||||
// }
|
||||
|
||||
|
||||
// // NOTE: Uncomment this to check that WebSocket
|
||||
// // is failing to connect to substrate.
|
||||
// #[wasm_bindgen_test]
|
||||
// async fn light_client_transport_works() {
|
||||
// init_tracing();
|
||||
// tracing::warn!("Starting test");
|
||||
// let light_client = LightClient::dial_substrate().await;
|
||||
// }
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
async fn light_client_transport_works() {
|
||||
init_tracing();
|
||||
|
||||
Reference in New Issue
Block a user