command
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 16, 2020
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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:
| Option |
Default |
Description |
| addr |
localhost:8080 |
Server host and port |
| path |
/ |
Server URL |
| publish |
1s |
Messages publishing interval |
| channels |
general,public,private |
Publishing channels |
WEB
- Open
index.html in your browser
- Click Connect button
- Click Subscribe button
Now, every published message which is matched your subscription will be shown in the Messages field.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.