kvarn_extensions::push

Function mount

source
pub fn mount(extensions: &mut Extensions, manager: SmartPush) -> &mut Extensions
Available on crate feature push only.
Expand description

Mounts a push extension with priority -32, overriding any other Post extension with that priority.

This only pushes new content to each connection every 2 minutes (if you use SmartPush::default), not every time.