https://github.com/manmolecular/go-now-here
:postbox: WebSocket chat with a random person
https://github.com/manmolecular/go-now-here
golang websocket
Last synced: 17 days ago
JSON representation
:postbox: WebSocket chat with a random person
- Host: GitHub
- URL: https://github.com/manmolecular/go-now-here
- Owner: manmolecular
- Created: 2023-05-26T16:43:38.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-25T18:42:12.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T16:51:55.367Z (over 1 year ago)
- Topics: golang, websocket
- Language: Go
- Homepage:
- Size: 336 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-now-here
WebSocket chat with a random person.
## Screenshot
User interface:

## Description
This project is a simple WebSocket-based chat where your messages are sent only to one free client from the pool of available connections. Simply put, it is a chat with a randomly assigned person.
There are no extra configuration possibilities, no fancy UI, no security measures, no tests, no HTTPS, etc. - just a rough implementation of the idea.
Thanks for attention.
## Requirements
One of:
- Go (tested on 1.20) to build and run natively
- Docker (tested on 20.10) and Docker Compose (tested on 2.17) to run in docker
Note for macOS: ensure that `"Use Docker Compose V2"` flag is enabled in `Preferences`
## Run
Perform one of the following commands:
```
make # build with Docker, run and attach to logs
make build # to build a Docker image
make run # to run the application using "docker compose"
make stop # to stop the appllication
make delete # to delete a container with the application
```
In your browser:
```
http://localhost:8000/
```