victorehrich / SocketChat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Here we have a sockets application made in node ( TS + net module). A small chat was made for real-time communication between two customers.

How to use: On your machine, run the server.ts file first (you can use the 'ts-node server.ts' command). ready, your server is already live on port 2800

Then run the client applications (you can use the command 'ts-node client.ts'). Okay, your client will be listening to the server on port 2800, so just start sending messages. You can run multiple terminals with multiple clients to test. if you want to go out with a client, just type 'go out'. When there are no more clients in the broadcast list, the server is closed.

About


Languages

Language:TypeScript 100.0%