longpoll

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

README

#Using LongPoll to listen for new events

A common use case is to read events to the head of an event stream and then listen for new events. This is sometimes called a catch-up subscription.

This example demonstrates how to do this.

Once the server is up simply go run the examples.

    $ go run main.go

The example will write a number of events to the eventstore that simulate existing events. It will then asynchrounously write events to the eventstore simulating the ongoing arrival of events at intervals.

The reader will read the existing events and then continue to poll the stream for new events.

This will continue until you terminate the application.

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