Skip to content

Commit

Permalink
fix: switch to false
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Aug 6, 2024
1 parent 3617d55 commit faf9b47
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/hermes/client/js/src/examples/HermesClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@ async function run() {
const eventSource = await connection.getPriceUpdatesStream(priceIds, {
encoding: "hex",
parsed: true,
allowUnordered: true,
allowUnordered: false,
benchmarksOnly: true,
});

eventSource.onmessage = (event) => {
console.log("Received price update:", event.data);
console.log(
"Price oldness:",
Date.now() / 1000 - JSON.parse(event.data).parsed[0].price.publish_time
);
};

eventSource.onerror = (error) => {
Expand Down

0 comments on commit faf9b47

Please sign in to comment.