Navigation

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

    websocket 2.0 not working

    General Discussion
    0
    3
    53
    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.
    • K
      krunal96 last edited by

      Hi @admin ,
      I have tried to implement websocket 2.0 in nodeJS. It's working fine for few seconds,but after few seconds data is not coming.
      Please check and revert.

      https://smartapi.angelbroking.com/docs/WebSocket2

      M 1 Reply Last reply Reply Quote 2
      • M
        markoma404 @krunal96 last edited by

        @vishant said in websocket 2.0 not working:

        ket

        Here is my working app on WebSocket2.0 .
        Check it out, and read the readme file if you will use it.
        https://github.com/markov404/AngelOneOptionChainSmartApi

        1 Reply Last reply Reply Quote 0
        • K
          kishan93 last edited by

          @vishant you need to keep sending those HB messages I think.

          The client must send a heartbeat message for each WebSocket connection every 30 sec to keep the connection alive.

          Also, can you tell me how you got to decode the data coming in messages?

          Response is in binary format with Little Endian byte order

          I am unable to decode those

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