Hi, for me if i send request like var message = {"a": "subscribe", "v": [53703431]}; i am getting 48Bits but is i am send request var message = {"a": "mode", "v": ["full", [53703431]]}; only getting 1Bit only with no data. please help.
Are you sure you are doing this after getting connected? If you send a message before connecting then it won't reach server right? You need to listen to on_connected callback and then subscribe after that you can set mode. If you directly set mode it won't automatically subscribe.
Also, your tick parsing is wrong. You are not considering first two fields in the tick - packet count and packet length. Refer the documentation to understand this in detail.
Or you can use the JS library which has implemented all this along with reconnection mechanisms.
If you send a message before connecting then it won't reach server right?
You need to listen to on_connected callback and then subscribe after that you can set mode. If you directly set mode it won't automatically subscribe.
Or you can use the JS library which has implemented all this along with reconnection mechanisms.
message = {"a": "mode", "v": ["full", [10154498]]};
ws.send(JSON.stringify(message));