summaryrefslogtreecommitdiff
path: root/docs/developer/server/push-notifications.md
blob: 2207fb914c52924bf3de2bcb46982e658743b174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Push Notifications

Endpoints for web-push are kept in the table `subscription`, along with keys
necessary for signing messages sent to those endpoints.

The server is responsible for processing events and determining, on a
user-by-user basis, whether they warrant triggering a web-push event.

As the logic around what _can_ trigger a push evolves, we will keep this
documentation up to date.

## Events that can trigger push

- A new channel is created
- A new message arrives in a channel
- A new message containing your username arrives in a channel
- A new message containing a keyword you have configured arrives in a channel
- A message you wrote is stitched
- A message you have flagged is stitched

## Current Configuration options

The web client currently supports setting all of these options, but the server
does not store or honour these settings.