Navigation

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

    Can we integrate websocket directly in client browser using JS or Angular or React or Vue

    General Discussion
    0
    2
    12
    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.
    • S
      surendaracg last edited by

      Hi Team,

      I my using smart api to create a application directly in client side using angular or react front end framework. I have tried consuming the live market data but socket is failed to connect. The new 2.0 Socket need the 4 main headers to be send when connecting to the socket, but from client browser there is no possible ways to send the headers for socket from Java Script. So can you please give me a clarification if it is possible to consume from client browser.

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @surendaracg last edited by

        Hi @surendaracg

        Apologies for delayed response.
        We have recently updated the Websocket 2.0 document,
        We can integrate websocket directly in client browser for the same.
        Kindly refer the below below document.
        https://smartapi.angelbroking.com/docs/WebSocket2
        For Users using Browser Based clients for websocket

        Thanks & Regards,
        SmartAPI team

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