Read a TCP port

Hello everybody.
I need to read the data received in Wifi so, if I understood correctly, on a TCP port.
Has anyone done this before, and if so, what should I be looking for?
Thanks
YC

Hi, as Meteor apps are Node.js apps you could use bare packages like net to do things like:

const server = net.createServer();

server.on('connection', function (socket) {
    console.log('new connetion');
  }
);

socket.on('data', function (data) {
});

server.on('error', function (err) {
  console.error('Error: ', err);
});

server.on('close', function () {
  console.log('closed');
});

Are you having specific challenges?

THANKS
I will study this way

Are you referring to the server connected in wifi (?) Or the client connected in wifi?