https://github.com/vavarm/websocket-chat-client
Node.js program
https://github.com/vavarm/websocket-chat-client
chat nodejs websocket
Last synced: 2 months ago
JSON representation
Node.js program
- Host: GitHub
- URL: https://github.com/vavarm/websocket-chat-client
- Owner: vavarm
- Created: 2022-03-11T08:44:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-02T16:41:15.000Z (almost 4 years ago)
- Last Synced: 2025-06-15T13:55:16.652Z (about 1 year ago)
- Topics: chat, nodejs, websocket
- Language: JavaScript
- Homepage:
- Size: 1.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# websocket-chat-client
A node.js software that communicates with a chat server using WebSockets.
> **Note:** This program is a draft and will serve as a basis for more complete programs with graphical interfaces.
It has been developed only to test the websocket server.
> **Note:** This program does not work anymore with the server due to some operating changes on the server. Please refer to the following replacement program: https://github.com/vavarm/websocket-chat-client-page
# Require
A websocket chat server with a room system.
Refer to the "websocket-chat-server" repository (https://github.com/vavarm/websocket-chat-server)
# Includes
npm modules:
|Name |Description |Link |
|----------------|--------------------------------|-------------------------------------------|
|ws |WebSocket Library |https://www.npmjs.com/package/ws |
|readline-Sync |Interactive readline in terminal|https://www.npmjs.com/package/readline-sync|
# Graph
```mermaid
graph LR
A((Client 1: id)) -- Client/Server connection --> S{Server: adress, port}
B((Client 2: id)) -- Client/Server connection --> S
C((Client 3: id)) -- Client/Server connection --> S
A -- Client creates a room --> Y[Room 1: name, password]
B -- Client joins a room --> Y
C -- Client creates a room --> Z[Room 2: name, password]
S -- Server's room --> Y
S -- Server's room --> Z
```