You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Elis Hirwing bde2eb067e
hub: Use sync to use read and write locks for map with active subscriptions
10 months ago
hub hub: Use sync to use read and write locks for map with active subscriptions 10 months ago
.envrc Add some nix env files for nix shell 10 months ago
.gitignore hub: Import mux and listen to requests 10 months ago
README.org README: Add readme 10 months ago
docker-compose.yml docker-compose: Restart the client on failure 10 months ago
shell.nix Add some nix env files for nix shell 10 months ago

README.org

Web Sub Hub test build

Run as normal with docker-compose up

Check the log to see that the hub builds and starts up, the hub will then print a message like:

2020/11/21 08:25:06 Created subscription for a-topic

While the client prints:

time="2020-11-21T08:25:12Z" level=info msg="Got a post, and all is good"

Make the hub send messages

Take your browser and head to http://127.0.0.1:8080/spam/a-topic

The last bit decides which topic to send messages to.