Market Data Feed Websocket Issues

@G_K_Abhinand @ShalabhSaurabh

We’ve added a streamer functionality to our SDK, and we recommend using it.

For more details, check out the following docs:

Do let us know if this helps!

Thanks!

I am facing issue with market data feed since 2 days. It was all fine till morning when feed abruptly stopped and even after recreating tokens, it didnt work.
Has anything been changed from 7-8 Oct.

I am connecting to websocket using javascript, but websocket connection is just failing without proper message in the onError() event.

To debug the issue, when I tried to run example from your SDK:

But there I saw, market feed is not working while order feed is fine. Please also check the messages on console:

Hi @Shantanu, please be assured that there have been no recent changes to the market feeder websocket.

Can you please share your 6 digit user id so we can investigate this further.

Thank you.

Thanks for the quick revert. My user id is ‘7VAN73’. As websocket was not working yesterday, I deleted my previous app on Upstox Accounts page and created new app. Tried with new token. Still no luck yet.

Also, when websocket connection doesn’t work, it goes into onError() method. Is there any way to check the reason for failure?

Hi @Ketan , did you get change to look at the issue? Strange thing is same token is working fine for order feed but not working for websockets.
Nothing has been changed on my side from websockets point of view. websocket code has been working fine since 4months.

How can i close websocket connections which are all open? otherwise how to know how many connetions are open in the server?

Hi @Vigneshwaran,

If you’re using the websocket streamer function, you can simply call the disconnect function to terminate the connection.

In cases where there’s a connection error on the user’s end or if you’ve stopped running your program, the websocket will automatically close from the server’s end. There’s no need to worry about managing websocket connections in such scenarios.

Thank you!

Does 3 websocket connection per user include portfolio stream feed websocket as well? or we can have 3 market data feed websocket connection and 1 portfolio stream feed connection?

Nope,

You may establish up to three market WebSocket connections along with an additional portfolio stream feed connection.

Thanks.

1 Like