Navigation

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

    Binary data from websocket 2.0

    General Discussion
    0
    4
    58
    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.
    • T
      TB_Developer last edited by

      Hi @admin ,

      i'm trying to implement websocket 2.0 without using smartapi library,

      can you please provide guidance for how to read binary data provided by websocket 2.0. tried different but nothing work, can you provide way that can help.

      S 1 Reply Last reply Reply Quote 2
      • S
        smitshahfo @TB_Developer last edited by

        @TB_Developer
        check.. Websocket 2.0 Documentation https://drive.google.com/drive/u/1/folders/1GMwTMfxRdiloUziV4DYwlYchGXbOvTfL

        T 2 Replies Last reply Reply Quote 0
        • T
          tsingh @smitshahfo last edited by

          @vrkhyd
          this doc does not talks anything about decoding the binary data.

          I am also facing the same issue.

          nodejs message log:-

          {
            "type": "binary",
            "binaryData": {
              "type": "Buffer",
              "data": [
                1,
                1,
                54,
                51,
                53,
                53,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                125,
                47,
                85,
                0,
                0,
                0,
                0,
                0,
                232,
                190,
                43,
                46,
                133,
                1,
                0,
                0,
                64,
                239,
                7,
                0,
                0,
                0,
                0,
                0
              ]
            }
          }
          
          1 Reply Last reply Reply Quote 0
          • T
            tsingh @smitshahfo last edited by

            @vrkhyd
            CLOSED.
            got it.
            need to step by step parse the bytes as mentioned it here
            https://smartapi.angelbroking.com/docs/WebSocket2

            Too much of effort!!
            Feedback - could have been a simpler contract

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