newclient
This commit is contained in:
@@ -86,12 +86,11 @@ export class DLOBSubscriberIO extends DLOBSubscriber {
|
||||
}
|
||||
|
||||
if (
|
||||
l2Args.updateOnChange &&
|
||||
this.lastSeenL2Formatted
|
||||
.get(l2Args.marketType)
|
||||
?.get(l2Args.marketIndex) === JSON.stringify(l2Formatted)
|
||||
l2Args.updateOnChange
|
||||
) {
|
||||
return;
|
||||
if (this.lastSeenL2Formatted
|
||||
.get(l2Args.marketType)
|
||||
?.get(l2Args.marketIndex) === JSON.stringify(l2Formatted)) return;
|
||||
}
|
||||
this.lastSeenL2Formatted
|
||||
.get(l2Args.marketType)
|
||||
|
||||
@@ -23,7 +23,6 @@ async function main() {
|
||||
console.log('Subscribing to channel', channel);
|
||||
redisClient.client.subscribe(channel);
|
||||
redisClient.client.on('message', (subscribedChannel, message) => {
|
||||
console.log(message);
|
||||
if (subscribedChannel === channel) {
|
||||
socket.emit(channel, JSON.parse(message));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user