From f2afd7e3a5dfe6a6240acf0d66c4b59540151b2f Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Tue, 12 Sep 2023 07:32:02 -0700 Subject: [PATCH] fix: get-acct-info.js should use wss Using https would result in: (node) UnhandledPromiseRejectionWarning: ValidationError: server URI must start with `wss://`, `ws://`, `wss+unix://`, or `ws+unix://`. at new Client (index.js:88:19) --- content/_code-samples/get-started/js/get-acct-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/_code-samples/get-started/js/get-acct-info.js b/content/_code-samples/get-started/js/get-acct-info.js index 7aaf249cf0..b48fe3322f 100644 --- a/content/_code-samples/get-started/js/get-acct-info.js +++ b/content/_code-samples/get-started/js/get-acct-info.js @@ -5,7 +5,7 @@ const xrpl = require("xrpl") async function main() { // Define the network client - const SERVER_URL = "https://s.altnet.rippletest.net:51234/" + const SERVER_URL = "wss://s.altnet.rippletest.net:51233/" const client = new xrpl.Client(SERVER_URL) await client.connect()