title: Solana websocket RPC with @solana/web3.js
body: <p>I'm trying to connect to Solana mainnet using websockets. I can't find out how to connect using web3.js. Maybe someone faced this issue and can help me ?</p>
  <p>Thanks</p>
  <p>Here's a simple line of code I made:</p>
  <pre><code>let con = new web3.Connection('https://api.mainnet-beta.solana.com', { commitment: &quot;confirmed&quot;, wsEndpoint: 'ws://api.mainnet-beta.solana.com' });
  </code></pre>