I’ve connected the websocket /feed/market-data-feed.
The live feed message from websocket is of type ByteBuffer.
I couldn’t parse the bytebuffer to String in java.
Even I referred your github project and this package is missing.
I tried using charset conversion and it’s not completely decoding.
Please provide a solution to convert bytebuffer to string.
Thank you for reaching out to us. It’s great to see your interest in exploring our APIs.
It seems that your code might be missing the protobuf decoding part. We’ve provided a complete implementation in the code example linked below. Please review it, and feel free to contact us if you have any questions.
Upstox Java Websocket Market Data Example
Yes, I’m facing problem in protobuf decoding part.
The java class FeedResponse.java is missing in your reference project.
If possible, please share the link to FeedResponse java class file.
Could you please review your reference project in Github related to this problem ?
Just to clarify, the FeedResponse is a subclass found within the MarketFeeder class. For further details, I suggest looking into the MarketFeeder class file.
Additionally, for more comprehensive insights, especially regarding the protobuf aspect, please visit the following link: Protocol Buffers (Protobuf) Classes Generation.
That helps !!!
Thanks a lot @shanmu