Hunter.WebPushSubscription (hunter v0.7.0)

Copy Markdown View Source

WebPushSubscription entity

A subscription to the Web Push API

Fields

  • id - the ID of the Web Push subscription in the database
  • endpoint - where push alerts will be sent to
  • standard - whether the subscription uses standardized web push (RFC 8030, 8291 and 8292) or legacy web push drafts
  • server_key - the streaming server's VAPID key
  • alerts - map of notification types to booleans, which alerts should be delivered to the endpoint (mention, status, reblog, follow, follow_request, favourite, poll, update, admin.sign_up, admin.report)

Summary

Types

t()

@type t() :: %Hunter.WebPushSubscription{
  alerts: map(),
  endpoint: String.t(),
  id: String.t(),
  server_key: String.t(),
  standard: boolean()
}