broadcast

command module
v0.0.0-...-3ea995d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 8 Imported by: 0

README

broadcast-demo

Broadcast service that can be connected via websocket different number of users. All users who are connected will receive a random message from the list of messages. When a new message is added to the database, it will be received by all connected.

Build & Run

Download the sources from the repository and run the service in the docker container.

Before starting, make sure you have free ports 8080 and 5432

git clone https://github.com/pshvedko/broadcast.git
cd broadcast
docker-compose up

Client

Open http://localhost:8080 in browser

Messages

Add records to the database using a connection

psql postgres://admin:admin@localhost/broadcast

Insert rows into table

insert into messages values ('some text there');

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL