user tcp chat

a server that sends the data it recieves from a client to all other connected clients with the username of the sender prepended to the message.

usage

Start the server with node server

Open a few terminals and run node client <username>.

Type a message in one terminal and see it appear in all the others!