Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ujstor/websocket-go
https://github.com/ujstor/websocket-go
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ujstor/websocket-go
- Owner: Ujstor
- Created: 2024-02-14T11:53:49.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-25T23:17:02.000Z (10 months ago)
- Last Synced: 2024-02-26T00:24:39.867Z (10 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project websockets
Simple ws implementation within the blueprint boilerplate.
## Getting Started
```bash
make run
```Run clinets
```bash
go run client/ws-data-read/main.gogo run client/ws-chat/main.go
```### Using docker
When docker is used, clinets connection string must mach compose service name.
```go
websocket.Dial("ws://server:8082/ws")
``````bash
make docker-run
``````bash
docker exec -it sh
./clinet-chat
``````bash
docker exec -it sh
./clinet-chat
```## MakeFile
run all make commands with clean tests
```bash
make all build
```build the application
```bash
make build
```run the application
```bash
make run
```Create DB container
```bash
make docker-run
```Shutdown DB container
```bash
make docker-down
```live reload the application
```bash
make watch
```run the test suite
```bash
make test
```clean up binary from the last build
```bash
make clean
```