This is a basic server-client chat made with Socket.io and JavaScript
Note I use
pnpmin these examples.NPMwill also work if you don't have or want to installpnpm
Clone the repository:
git clone https://github.com/Glowstudent777/Socket-Chat-TS.gitInstall dependencies:
pnpm installserver.shYou can have as many clients open as you like on your device at once. To open a new client window just run the following command:
client.shEnter your username and hit Enter
| Command | Function | Usage |
|---|---|---|
| b; | Sends a message | b; <message> |
| ls; | Shows users in chat | ls; |
| q; | Exits chat | q; |