Vue app to show real-time price data from Websocket. Frontend part of Trade-ws. Subscribe and unsubscribe to asset prices feed, which comes through socket.
In case of connection failure try app will try to reestablish connection, and it was successful - resubscribe to existed prices feed.
this.websocket.send(
JSON.stringify({
event: "events",
data: { type: "subscribe", subscribe: isin }
})
);
this.websocket.send(
JSON.stringify({
event: "events",
data: { type: "unsubscribe", unsubscribe: isin }
})
);
yarn install
yarn serve