cleanup
This commit is contained in:
parent
10d0a2fbc0
commit
2508e6cb1a
@ -15,9 +15,6 @@ class p2p {
|
|||||||
this.tcpServer = net.createServer();
|
this.tcpServer = net.createServer();
|
||||||
this.tcpServer.maxConnections = config.p2pConnections * 2;
|
this.tcpServer.maxConnections = config.p2pConnections * 2;
|
||||||
this.tcpServer.on('connection', (socket) => {
|
this.tcpServer.on('connection', (socket) => {
|
||||||
this.tcpServer.getConnections((err, count) => {
|
|
||||||
console.log('connection', count)
|
|
||||||
})
|
|
||||||
socket = new JsonSocket(socket);
|
socket = new JsonSocket(socket);
|
||||||
socket.on('error', (err) => {})
|
socket.on('error', (err) => {})
|
||||||
socket.on('message', (message) => {
|
socket.on('message', (message) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user