Skip to main content

Questions tagged [websocket]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
39 views

How to enable communication between Substrate chain and web socket client

I have a Substrate chain and web socket client, build in Rust. I am trying to figure out a way to enable communication between both of them. I couldn't find way to create web socket server in ...
Boleng's user avatar
  • 523
1 vote
0 answers
34 views

How to create web socket server through off chain worker?

I need to establish a web socket connection through off chain worker. I asked here How to establish web socket connection in offchain_worker but didn't get any response. Is there any way/example to ...
Boleng's user avatar
  • 523
1 vote
1 answer
157 views

How to establish web socket connection in offchain_worker

Is there any way/example to establish web socket connection through off chain worker? There are many Rust examples but I can't use standard library. Can someone please help me?
Boleng's user avatar
  • 523
3 votes
3 answers
1k views

Difference between HTTP server, RPC server, and WebSockets in the context of Substrate framework?

In the context of the Substrate framework, I'm trying to understand the differences between an HTTP server, an RPC server, and WebSockets. Specifically, how do these communication mechanisms relate to ...
the dev's user avatar
  • 477
1 vote
1 answer
187 views

Parachain RPC errors since Polkadot 0.9.36 client upgrade

Astar uplifted to Polkadot 0.9.36 in v4.47.1 Client upgrade introduces 2 new errors on RPC nodes, both WS and HTTP. HTTP: lots of these errors - seems high impact HTTP serve connection failed hyper::...
bLd's user avatar
  • 182
1 vote
1 answer
269 views

"Cannot convert undefined or null to object" using polkadot.js in substrate tutorials

I've been following through the pallets tutorial: https://docs.substrate.io/tutorials/work-with-pallets/use-macros-in-a-custom-pallet/ and got stuck at the last step of interacting with the blockchain....
S. Iakovlev's user avatar
0 votes
1 answer
158 views

"Cannot call send() while not connected" with RPC websocket provider

I will try to explain it briefly. I'm using Promise API to connect to few different RPCs (ws). Also I'm listening to an event connected on each websocket provider. When all providers are connected I ...
guakamole's user avatar
-1 votes
1 answer
139 views

Can't Connect to Chain through websocket

My Polkadot-JS explorer UI does not load when i connect to the local chain and gives a websocket error. API-WS: disconnected from ws://127.0.0.1:9944: 1006:: Abnormal Closure It just started this ...
Woodfish's user avatar
  • 121
1 vote
1 answer
45 views

Opt-out of polkadot.js/api system_health calls for wss rpc

We have been spoiled with free, almost unlimited public websocker rpcs in Kusama and Polkadot ecosystem, but this is changing fast, so we are exploring paid RPC API services. But we have noticed that ...
Yuri's user avatar
  • 173
1 vote
0 answers
373 views

Nginx Websocket Proxy Error - 502 Bad Gateway

I am getting this error below from nginx [error] 32#32: *4 upstream prematurely closed connection while reading response header from upstream, client: 172.21.0.1, server: , request: "GET / HTTP/1....
user3037622's user avatar
2 votes
1 answer
107 views

fork-off-substrate dying at 37% with rpc max size disconnect

I'm trying to get fork-off to work with a pair of custom types(https://github.com/hicommonwealth/edgeware-node-types) and I am getting fork-off-substrate to work with a WS socket instead of a HTTP RPC ...
flipchan's user avatar
  • 369
1 vote
1 answer
478 views

Intermitent errors with jsonrpsee: WS error: i/o error: Transport endpoint is not connected (os error 107); terminate connection 1056

We've been getting some intermitent websocket connection issues on our production polkadot UI node since the upgrade to jsonrpsee. We are running a single Polkadot 0.9.24 container image on our K8s ...
T9b's user avatar
  • 468
1 vote
2 answers
1k views

API-WS: disconnected from ws://127.0.0.1:9946: 1006:: Abnormal Closure

I'm trying to connect local node running on my pc using polkadot.js library in react.js(browser). I'm pasting my code in below snippet and error that I'm facing in chrome console Code // **************...
Puneet Jindal's user avatar
3 votes
1 answer
316 views

Connection refused using --unsafe-rpc-external --unsafe-ws-external

I'm trying to connect to my local node using the --unsafe-rpc-external --unsafe-ws-external flags when running the node. I can connect to the node through a node.js script, but not from a browser ...
adrielvb's user avatar
3 votes
2 answers
244 views

How to connect to cloud hosted node using WebSocket?

I'm currently running a node on a cloud machine and I'm running into several issues when trying to connect to it using the Polkadot Portal. I've tried doing it in two ways, the first is by running the ...
edmassarani's user avatar
3 votes
1 answer
253 views

Dev Substrate Node at Capacity for WS Connections, how to flush?

I'm running a node in dev mode: ./substrate/target/release/substrate --dev --tmp --ws-external My client connection code: provider = new WsProvider(wsProvider) api = await new ApiPromise({ provider })....
Matthew Darnell's user avatar
1 vote
2 answers
87 views

How to map out transaction history between different WebSocket endpoints?

I would like to begin putting together a history of the usage of different WebSockets across different parachains and parathreads. I am relatively new to this ecosystem and have not been about to ...
sweden_chat's user avatar
5 votes
2 answers
543 views

what's a good value for `--ws-max-connections`?

calamari parachain uses an aws dns latency based load balancer for the ws.calamari.systems dns entry used by polkadot.js for websocket interactions with calamari. there are multiple, geographically ...
grenade's user avatar
  • 486