@nikhilR Thank you for your help. I tested after applying the above tweaks for BigEndian and it worked. Now, I could move on to the next steps.
For windows platform, with visual studio C++ compiler, I used _byteswap_ushort:
uint16_t num_packets …
The point here is that the websocket fails silently without any valid error. This seems like some validation in kite api is not handled properly. May be a corner case, but I am hitting it. So, it may be worthwhile for you to investigate.
@sujith I have written that comment in code and I am the author of the code itself. So, I know what I am doing ! Do you see an if condition before that checks for buffer size. I receive a binary buffer of zero bytes from the web socket. If you are r…
The code is on github at the following link. I am handling the binary message and only observing text messages to figure out if there's an error.
https://github.com/web3ninja/test_kite_ws/blob/master/kite_ws.c
@sujith Any pointer to what could be the possible cause for this issue would be helpful. The subscribe and mode messages seems to be alright and I do not get a text message back from the websocket. I am implementing a C++ client. Do you have any ref…
Here's the output from my program. It gets connected. The subscribe and mode messages are successfully sent with no text message callback. Later, only the heartbeats follow but no ticks.
connected!
{"a":"subscribe","v":[738561]}
buffer size: 0
Suc…
Earlier I had received messages about “unable to parse instrument tokens” etc as text message and I fixed them.
Now i have no reference as to why I do not receive any ticks-no text message or otherwise.
Is there a way to verify at the ba…