Discord Interview Question

Using Telnet or NetCat, create a chat server that allows multiple clients to connect and send messages to one another.

Interview Answer

Anonymous

Jan 24, 2025

Look into NodeJS' "net" package and its documentation, especially "createServer" and "Event". You are not allowed to use Express, Socket.io, or any other packages beyond what is in NodeJS. You will use PuTTY to connect to your "localhost" via the port you write in your "createServer" code, with a connection type of "Raw". Open up multiple instances of PuTTY to test multiple connections to the Web Socket.

1