[Solved] Problem with Aeternal middleware

Hello all,

I’m trying to get inormation from the Aeternal middleware, using this code sample from the documentation:

const WebSocketClient = require(“websocket”).client;

const wsclient = new WebSocketClient();

wsclient.connect(“wss://testnet.aeternal.io”);

wsclient.on(“connectFailed”, console.error);

wsclient.on(“connect”, connection => {

console.log(“connected”);

// do stuff

});

But it returns

Error: Server responded with a non-101 status: 200 OK

Any ideas? :roll_eyes: @philipp.chain

Help would be greatly appreciated

1 Like

Fixed it after adding “/websocket” at the end of the URL.

3 Likes