An interface for BörseGo WebPush subscriptions (https://git.boerse-go.de/projects/WEBPUSH/repos/bg.webpush/browse).
BG.WebPush
function boerseGoWebPush(cmd, cb) { const subscriptionId = BG.push.subscribe(cmd, (data)=>cb(null,data), { noJSONP: 1 }); return { unsubscribe: function() { return BG.push.unsubscribe(subscriptionId); } };}; Copy
function boerseGoWebPush(cmd, cb) { const subscriptionId = BG.push.subscribe(cmd, (data)=>cb(null,data), { noJSONP: 1 }); return { unsubscribe: function() { return BG.push.unsubscribe(subscriptionId); } };};
m.webpush
function boerseGoWebPush(cmd, cb) { const subscription = m.webpush(cmd, cb); return {unsubscribe() { subscription.destroy() }}} Copy
function boerseGoWebPush(cmd, cb) { const subscription = m.webpush(cmd, cb); return {unsubscribe() { subscription.destroy() }}}
An interface for BörseGo WebPush subscriptions (https://git.boerse-go.de/projects/WEBPUSH/repos/bg.webpush/browse).
example for the official
BG.WebPush
clientexample for
m.webpush
(http://grid2.s.test/doc#js/x/gate-webpush):