Skip to content

Commit

Permalink
Tests all validated
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Switzer committed Jun 7, 2020
1 parent 171c1ec commit d004a60
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,23 @@ const client = new ForgeClient('0JHZqgJf7V3tvd7BA3MGThQB3NqVX7F9');

// //All the symbols
// client.getSymbols().then(response => {
// client.getQuotes(response).then((res) => {
// console.log(res);
// console.log("Here", res[0].s);
// });
// console.log(response);
// // client.getQuotes(response).then((res) => {
// // console.log(res);
// // console.log("Here", res[0].s);
// // });
// });

//Websockets
client.onConnect(() => {
console.log('SUBSCRIBE');
client.subscribeTo('BTC/USD');
});
client.onUpdate((symbol, data) => {
console.log(symbol, data);
});
// client.getSymbols().then(response => {
// console.log(response);
// client.onConnect(() => {
// console.log('SUBSCRIBE');
// client.subscribeTo('BTC/USD');
// });
// client.onUpdate((symbol, data) => {
// console.log(symbol, data);
// });
// client.onMessage((message) => {
// console.log("msg", message);
// });
client.onMessage((message) => {
console.log("msg", message);
});

client.connect();
// client.connect();

0 comments on commit d004a60

Please sign in to comment.