Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. prashant0701_
    P
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    prashant0701_

    @prashant0701_

    1
    Reputation
    1
    Posts
    1
    Profile views
    0
    Followers
    2
    Following
    Joined Last Online

    prashant0701_ Follow

    Best posts made by prashant0701_

    • Error while subscribing for live data feed in websocket in javascript

      Hi @admin and everyone,
      I am trying to subscribe to a token using webscoket V2 in javascript. After making a websocket connection I am running following code inside fetchData function:

      let req = '{"correlationID":"' + "abcde12345" + '","action":"'+ 1 + '","params":"' + '{"mode":"'+ 1 + '","tokenList":"' + '[{"exchangeType":"' + 1 + '","tokens":"' + '["3045"]'+'"}]}}';

      ws.send(req);

      I am getting following error:
      Error while processing message

      Is there anything wrong in the request string?
      Please help.

      Thanks and regards,
      Prashant

      posted in Bugs
      P
      prashant0701_

    Latest posts made by prashant0701_

    • Error while subscribing for live data feed in websocket in javascript

      Hi @admin and everyone,
      I am trying to subscribe to a token using webscoket V2 in javascript. After making a websocket connection I am running following code inside fetchData function:

      let req = '{"correlationID":"' + "abcde12345" + '","action":"'+ 1 + '","params":"' + '{"mode":"'+ 1 + '","tokenList":"' + '[{"exchangeType":"' + 1 + '","tokens":"' + '["3045"]'+'"}]}}';

      ws.send(req);

      I am getting following error:
      Error while processing message

      Is there anything wrong in the request string?
      Please help.

      Thanks and regards,
      Prashant

      posted in Bugs
      P
      prashant0701_