2
I am creating a game server and in this game server will have several channels belonging to the same server, ai was wondering if it is possible to create two Listen on the same server, example:
var net = require('net');
var server = net.createServer((socket) => {
socket.on('data', onDataFunction());
});
server.listen(8945, '192.168.0.8', () => {
console.log('Canal 1 iniciado');
});
server.listen(8945, '192.168.0.15', () => {
console.log('Canal 2 iniciado');
});
That would work normally ?
Yes, but not at the same door.
– bfavaretto