I`ve tried to connect to the websocket api over getblock.io but it always fails. Here below is JS code. But HttpProvider works fine on "https://bsc-mainnet.web3api.com/v1/API_KEY".
web3ws = new Web3(new Web3.providers.WebsocketProvider('wss://bsc.getblock.io/mainnet/?api_key=API_KEY'));
if (web3ws.isConnected)
console.log("Connected");
else
console.log("Not Connected");
Am I missing something here ? Should i have to pay it first to able to use this service?