Chartbreaker
    Preparing search index...

    Type Alias BoerseGoWebPush

    BoerseGoWebPush: (cmd: any, cb: Nodeback<any>) => ObservableSubscription

    An interface for BörseGo WebPush subscriptions (https://git.boerse-go.de/projects/WEBPUSH/repos/bg.webpush/browse).

    example for the official BG.WebPush client

    function boerseGoWebPush(cmd, cb) {
    const subscriptionId = BG.push.subscribe(cmd, (data)=>cb(null,data), {
    noJSONP: 1
    });
    return {
    unsubscribe: function() {
    return BG.push.unsubscribe(subscriptionId);
    }
    };
    };

    example for m.webpush (http://grid2.s.test/doc#js/x/gate-webpush):

    function boerseGoWebPush(cmd, cb) {
    const subscription = m.webpush(cmd, cb);
    return {unsubscribe() { subscription.destroy() }}
    }

    Type Declaration