Can we integrate websocket directly in client browser using JS or Angular or React or Vue
-
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.
-
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 websocketThanks & Regards,
SmartAPI team