From caf03a09c8a118a8ac19dd913f40340f3f087860 Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Wed, 26 Oct 2022 16:34:09 +0100 Subject: [PATCH] Adding in wss fix for web version --- clients/webassembly/js-example/worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/webassembly/js-example/worker.js b/clients/webassembly/js-example/worker.js index 78828f18c5..6889109911 100644 --- a/clients/webassembly/js-example/worker.js +++ b/clients/webassembly/js-example/worker.js @@ -73,6 +73,7 @@ async function main() { // const preferredGateway = 'CgQrYP8etksSBf4nALNqp93SHPpgFwEUyTsjBNNLj5WM'; const gatewayEndpoint = await get_gateway(validator, preferredGateway); + gatewayEndpoint.gateway_listener = "wss://gateway1.nymtech.net:443"; // this is needed if we want it to work on the web. However this gateway is a v1 gateway, we will need to change for v2 once we get there // only really useful if you want to adjust some settings like traffic rate // (if not needed you can just pass a null)