Stop every active subscription and close the shared Pusher connection.
Safe to call even if no subscription was ever made. Because the open Pusher socket keeps Node's event loop alive, call this to let a process exit cleanly. The connection is recreated lazily on the next subscribe.
Subscribe to a Politics & War event stream.
Model, event, optional filters, and typed onData / onError handlers
A Subscription handle; call .unsubscribe() to stop it
Stop every active subscription.
Manages real-time Politics & War subscriptions over a shared Pusher connection.
Each
subscribe()call returns an independent Subscription handle, so a client can watch as many model/event streams as it likes and tear each down individually. On reconnect, every active subscription replays missed events.