mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-01 08:29:49 +00:00
Use libp2p's implementation of a wasm websocket transport (#5089)
* Update to libp2p 0.16.2 * Use libp2ps implementation of a wasm websocket transport * Remove explicit Configuration type in node-cli Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
1 parent
1cfcf5cbfe
commit
3429967122
6 files changed
+13
-165
No files matched your search
@@ -6,7 +6,6 @@
|
||||
<link rel="shortcut icon" href="/favicon.png" />
|
||||
<script type="module">
|
||||
import { start_client, default as init } from './pkg/node_cli.js';
|
||||
import ws from './ws.js';
|
||||
|
||||
function log(msg) {
|
||||
document.getElementsByTagName('body')[0].innerHTML += msg + '\n';
|
||||
@@ -20,7 +19,7 @@ async function start() {
|
||||
const chain_spec_text = await chain_spec_response.text();
|
||||
|
||||
// Build our client.
|
||||
let client = await start_client(chain_spec_text, 'info', ws());
|
||||
let client = await start_client(chain_spec_text, 'info');
|
||||
log('Client started');
|
||||
|
||||
client.rpcSubscribe('{"method":"chain_subscribeNewHead","params":[],"id":1,"jsonrpc":"2.0"}',
|
||||
|
||||
Reference in new issue
Block a user