https://github.com/vavarm/websocket-chat-server
Node.js program
https://github.com/vavarm/websocket-chat-server
chat nodejs websocket
Last synced: about 1 month ago
JSON representation
Node.js program
- Host: GitHub
- URL: https://github.com/vavarm/websocket-chat-server
- Owner: vavarm
- Created: 2022-03-11T08:45:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-19T12:42:11.000Z (almost 4 years ago)
- Last Synced: 2025-07-25T04:42:53.439Z (11 months ago)
- Topics: chat, nodejs, websocket
- Language: JavaScript
- Homepage:
- Size: 407 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# websocket-chat-server
A node.js software that allow clients communicate using WebSockets.
# Require
Refer to the "websocket-chat-client" repository (https://github.com/vavarm/websocket-chat-client) as an example of client.
# Includes
npm modules:
|Name |Description |Link |
|----------------|--------------------------------------------|-----------------------------------------|
|ws |WebSocket Library |https://www.npmjs.com/package/ws |
|uuid-random |Random and unique identifier for each client|https://www.npmjs.com/package/uuid-random|
|chalk |Syntax highlighting in terminal |https://www.npmjs.com/package/chalk |
# 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
```