mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-22 21:59:44 +03:00
IIFE
This commit is contained in:
@@ -229,7 +229,7 @@ class AggregatorWS {
|
||||
this.logger?.(`Sent: ${jsonData}`);
|
||||
}
|
||||
|
||||
private hearbeatIntervalId: NodeJS.Timer | undefined;
|
||||
private hearbeatIntervalId: ReturnType<typeof setInterval> | undefined;
|
||||
private setupHeartbeat() {
|
||||
const heartbeat = () => {
|
||||
if (this.isAlive) {
|
||||
@@ -552,7 +552,7 @@ class AggregatorWS {
|
||||
break;
|
||||
case MessageType.AGGREGATED_ORDER_BOOK_UPDATE: {
|
||||
const { ob, S } = json;
|
||||
const mapOrderbookItems = (rawItems: typeof ob.a | typeof ob.b) => rawItems.reduce<OrderbookItem[]>((acc, item) => {
|
||||
const mapOrderbookItems = (rawItems: typeof ob.a) => rawItems.reduce<OrderbookItem[]>((acc, item) => {
|
||||
const [
|
||||
price,
|
||||
amount,
|
||||
|
||||
Reference in New Issue
Block a user