Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipeagger/go-distributed-websocket
Distributed Web Socket with Golang and Redis
https://github.com/felipeagger/go-distributed-websocket
Last synced: about 1 month ago
JSON representation
Distributed Web Socket with Golang and Redis
- Host: GitHub
- URL: https://github.com/felipeagger/go-distributed-websocket
- Owner: felipeagger
- License: bsd-2-clause
- Created: 2022-02-17T19:37:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-17T23:47:12.000Z (almost 3 years ago)
- Last Synced: 2024-10-02T09:29:01.554Z (about 2 months ago)
- Language: Go
- Size: 206 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-distributed-websocket
Distributed Web Socket with Golang and Redis## Dependencies
- gorilla/websocket
- go-redis## Architecture
![Flow](/assets/distributed-websocket.png)
## Running
Compile with:
```
make build && make up
```## On Browser Access
http://0.0.0.0:8008/
Send:
```
{"userId": "9e67a109-5c55-4e0b-8d5f-31b06ed4bb38", "origin": "web", "data": "Hello World"}
```## Web Client
![Flow](/assets/web-client.png)