Commit de8a406
committed
refactor(presence): route stream-user-presence subscribe through DDPSDK when ready
The stream-user-presence 'subscription' is used as a fire-and-forget
command channel: each call hands the server an added/removed list of
user ids and the server keeps its own tracking; the client never calls
stop(). Same behaviour applies when we route it through DDPSDK instead
of Meteor.subscribe, so wrap the call in a helper that picks
ddpSdk.client.subscribe while the SDK is authenticated and falls back
to Meteor.subscribe otherwise.1 parent 4695aa7 commit de8a406
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
8 | 21 | | |
9 | 22 | | |
10 | 23 | | |
| |||
55 | 68 | | |
56 | 69 | | |
57 | 70 | | |
58 | | - | |
| 71 | + | |
59 | 72 | | |
60 | 73 | | |
61 | 74 | | |
| |||
0 commit comments