package
1.0.0
Repository: https://github.com/kpeu3i/wspubsub.git
Documentation: pkg.go.dev

# README

Demo

This example shows how to use the library to implement a simple pub/sub application.

Running the example

The example requires a working Go development environment.

Server

$ go run main.go

Next command line options are allowed:

OptionDefaultDescription
addrlocalhost:8080Server host and port
path/Server URL
publish1sMessages publishing interval
channelsgeneral,public,privatePublishing channels

WEB

  1. Open index.html in your browser
  2. Click Connect button
  3. Click Subscribe button

Now, every published message which is matched your subscription will be shown in the Messages field.

# Structs

No description provided by the author