title: How to connect BSC wesocket provider with Web3J or Web3js
body: <p>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 &quot;https://bsc-mainnet.web3api.com/v1/API_KEY&quot;.</p>
  <pre><code>web3ws = new Web3(new Web3.providers.WebsocketProvider('wss://bsc.getblock.io/mainnet/?api_key=API_KEY'));
  
  if (web3ws.isConnected)
              console.log(&quot;Connected&quot;);
          else 
              console.log(&quot;Not Connected&quot;); 
  </code></pre>
  <p>Am I missing something here ? Should i have to pay it first to able to use this service?</p>