Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aburdulescu/rechat
Very simple demo chat app using Websockets and Redis PubSub
https://github.com/aburdulescu/rechat
Last synced: about 2 months ago
JSON representation
Very simple demo chat app using Websockets and Redis PubSub
- Host: GitHub
- URL: https://github.com/aburdulescu/rechat
- Owner: aburdulescu
- Created: 2021-02-22T21:15:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-23T10:13:39.000Z (over 3 years ago)
- Last Synced: 2024-06-19T19:38:49.200Z (7 months ago)
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rechat
Very simple demo chat app using Websockets and Redis PubSub
## Build
```
git clone https://github.com/aburdulescu/rechat.git
cd rechat
go build
```## Usage
- install and then start Redis:
For example, on Debian:
```
sudo apt install redis
sudo systemctl start redis-server.service
```- start `rechat` server:
```
cd rechat
./rechat
```- open the address "http://localhost:8080" in a couple of browser tabs,
write messages in each and you should see them propagate to each tab- the chat is scalable, meaning that you can start 2(or more) `rechat` instances and
connect different clients to each and you will still be able to communicate
between the clients connected to the two different instances