Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    PHP web soket : receiving only time feed mw/sfi/dp are not working

    General Discussion
    2
    12
    81
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      girish.gss last edited by

      hi i am trying to get websoket feed using php javascript but the reply for the server is only time feed even if i send mw

      please look into it and do the needfull.```
      <script src="https://cdnjs.cloudflare.com/ajax/libs/pako/1.0.11/pako_inflate.js"></script>
      <script src="socket.js"></script>
      <script type="text/javascript">

      var ws =new  websocket('DIYD25731', <?php echo(json_encode($jwttoken)); ?>);
      
      //connect to server
      ws.connection().then(() => {
          ws.runScript("nse_cm|2885", "mw");
          setTimeout(function () {
              ws.close()
          }, 6000)
      });
      

      //add callback method where you can manipulate socket data
      ws.on('tick', receiveTick);

      //user defined function
      function receiveTick(data) {
      	//console.log(data);					
          data =  JSON.parse(data);
          if (data) {
          	console.log(data);
          }
          else{
          	console.log("No data @" + new Date().toLocaleString());
          }   
      
      }
      

      </script>

      
      ...
      i am receiving following response if i post mw
      
      
      

      [
      {
      "tvalue": "07/06/2021 14:53:15",
      "name": "tm"
      }
      ]

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @girish.gss last edited by

        Hi @girish-gss As discussed on the call we have reported this issue and we will update you on this.

        G 2 Replies Last reply Reply Quote 0
        • G
          girish.gss @admin last edited by

          @admin

          How much time it may take to solve the problem?

          1 Reply Last reply Reply Quote 0
          • G
            girish.gss @admin last edited by

            @admin
            is their any update its already 4 days

            A 1 Reply Last reply Reply Quote 0
            • A
              admin @girish.gss last edited by

              HI @girish-gss Our team is working on this once fixed we will inform you.

              G 1 Reply Last reply Reply Quote 0
              • G
                girish.gss @admin last edited by

                @admin
                dear admin its already 6 days since i reported dont you people have any time frame to solve the issues...!

                A 1 Reply Last reply Reply Quote 0
                • A
                  admin @girish.gss last edited by

                  HI @girish-gss This issue has been resolve.Let us know if you have any other issue.

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    girish.gss @admin last edited by

                    @admin yet i am getting the time feed only

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      admin @girish.gss last edited by

                      HI @girish-gss which version of sdk you are using.

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        girish.gss @admin last edited by

                        @admin nothing is changed in your websoket api details on your website if i get the new thing i can update it

                        1 Reply Last reply Reply Quote 0
                        • G
                          girish.gss last edited by

                          i am using php scripts with javascript

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            admin @girish.gss last edited by

                            HI @girish-gss Are you still facing the issue ..?

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post