survey

command
v0.0.0-...-90bf800 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 13 Imported by: 0

README

In this example we show how to use Node.Survey to collect channel information from all running Centrifuge nodes.

Start Redis server locally:

redis-server

Start first example instance on port 8000:

go run main.go -port 8000

Then start another example instance on port 8001 (in another terminal):

go run main.go -port 8001

Go to http://localhost:8000 and to http://localhost:8001 in another browser tab. Clients will subscribe to channels (each to its window.location.host), each second survey will ask for all active channels with number of subscribers from all running nodes and print to console.

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