Commit 4e236dd
committed
feat(sdk): stop bypassing UserPresence:* methods — let them hit DDPSDK
The original bypass for UserPresence:setDefaultStatus / online / away was
a performance guard: REST round-trips were expensive for the frequent
heartbeat-style calls, so they stayed on the Meteor DDP WS. With the
DDPSDK WebSocket now carrying the rest of the RPC traffic, that
rationale no longer applies — they can ride the same socket as every
other sdk.call.
logout and setUserStatus stay on the bypass list for now. logout mutates
per-connection auth state that the Accounts.onLogout chain relies on,
and setUserStatus currently feeds the legacy Meteor user stream.1 parent caa949e commit 4e236dd
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
0 commit comments