Log backend connections

This commit is contained in:
maciejhirsz
2018-07-26 15:26:14 +02:00
parent a04fae4de4
commit 2f0f250d81
5 changed files with 28 additions and 5 deletions
+1 -3
View File
@@ -1,6 +1,6 @@
import * as WebSocket from 'ws';
import * as EventEmitter from 'events';
import { timestamp, Maybe, Types, idGenerator } from '@dotstats/common';
import { noop, timestamp, Maybe, Types, idGenerator } from '@dotstats/common';
import { parseMessage, getBestBlock, Message, BestBlock, SystemInterval } from './message';
import { locate, Location } from './location';
@@ -14,8 +14,6 @@ export interface NodeEvents {
emit(event: 'location', location: Location): void;
}
function noop() {}
export default class Node {
public readonly id: Types.NodeId;
public readonly name: Types.NodeName;