Streaming is limping
This commit is contained in:
@@ -2,6 +2,7 @@ import {io} from "socket.io-client";
|
||||
import {useStore} from "@/store/store.js";
|
||||
import {flushOrders} from "@/blockchain/wallet.js";
|
||||
import {parseOrderStatus} from "@/blockchain/orderlib.js";
|
||||
import { DataFeed } from "./charts/datafeed";
|
||||
|
||||
export const socket = io(import.meta.env.VITE_WS_URL || undefined, {transports: ["websocket"]})
|
||||
|
||||
@@ -23,6 +24,7 @@ socket.on('p', async (chainId, pool, price) => {
|
||||
|
||||
socket.on('ohlc', async (chainId, pool, ohlcs) => {
|
||||
console.log('pool bars', pool, ohlcs)
|
||||
DataFeed.poolCallback(chainId, pool, ohlcs)
|
||||
})
|
||||
|
||||
socket.on('vb', async (chainId, vault, balances) => {
|
||||
|
||||
Reference in New Issue
Block a user