title: WebSocket problem when trying to connect from client
body: <p>I'm having trouble trying to connect with websocket server.<br />
  I need to subscribe to get the current price of EUR/USD but I keep reciving this object : {topic: &quot;keepalive&quot;}.<br />
  It should return the price and the latest timestamp;</p>
  <p>This is my code :</p>
  <pre><code>import { w3cwebsocket as W3CWebSocket } from &quot;websocket&quot;;
  
  
  export default function LogIn() {
  
      const client = new W3CWebSocket('ws://stream.tradingeconomics.com/?client=guest:guest');
  
      useEffect(()=&gt;{
          client.onopen = function(e) {
              console.log(&quot;Connection established!&quot;);
              client.send(JSON.stringify({topic: &quot;subscribe&quot;, to: &quot;EURUSD:CUR&quot;}))
              client.onmessage = function(e) { console.log(e); };
          };
          
      },[])
  </code></pre>
  <p>I would appreciate the help !</p>