Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. jimuld
    3. Posts
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 0
    • Groups 0

    Posts made by jimuld

    • RE: not receiving proper WebSocket data

      @admin facing same issue, only receving tm data

      [{"tvalue":"16/02/2023 11:35:12","name":"tm"}]
      [{"tvalue":"16/02/2023 11:35:13","name":"tm"}]
      [{"tvalue":"16/02/2023 11:35:14","name":"tm"}]
      [{"tvalue":"16/02/2023 11:35:15","name":"tm"}]

      Here is code :

      var ws =new websocket('', '',"nse_cm|2885", "mw");
      ws.connection().then(() => {
      ws.runScript("nse_cm|2885&nse_cm|1594&nse_cm|11536", "mw|sf|dp");
      setTimeout(function () {
      ws.close()
      }, 30000)
      });
      ws.on('tick', receiveTick);

      function receiveTick(data) {
      	console.log(data);			  
      }
      
      posted in Test
      J
      jimuld