turnpike icon indicating copy to clipboard operation
turnpike copied to clipboard

Initial publish packet for new subscribers

Open beatgammit opened this issue 10 years ago • 1 comments

Often it's useful to not have to wait for the next publish before receiving data, but to receive a packet just after subscribing. This is useful if you're subscribing to settings changes or any other persistent but mutable data.

There should be a hook or a setting somewhere to configure this.

beatgammit avatar Apr 04 '14 17:04 beatgammit

There is an alpha-stage document for something similar in the WAMP advanced spec:

https://github.com/tavendo/WAMP/blob/master/spec/advanced/event-history.md

You would just set the limit=1 to get only the last event.

jcelliott avatar Sep 03 '15 02:09 jcelliott