Commit 78a4bf9
committed
feat(sdk): route all DDP method traffic (login resume, logout, setUserStatus) through DDPSDK
Trim the remaining ddpOverSDK bypass list to only the structural cases:
- msg !== 'method' (subs etc. still native)
- method starts with 'stream-' (stream-prefixed RPCs — sdk.publish already
handles these directly when DDPSDK is ready)
Everything else now flows through our SDK's WebSocket:
- setUserStatus: plain mutation, no per-connection state
- logout: the result still propagates back to Meteor's invoker machinery
via our processResult(), so Accounts.onLogout / userId cleanup run as
before. No more bypass needed.
- login with {resume}: the Meteor.loginWithToken dance that re-queues a
resume login after non-resume logins is guarded with wasResumeLogin so
it doesn't recurse when the response we're processing *is* a resume.
Net effect: the only DDP messages that still ride Meteor's WS are
non-method frames (subscribes, heartbeats) and the rare stream-* RPC.1 parent 1c449f8 commit 78a4bf9
1 file changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
14 | 11 | | |
15 | | - | |
| 12 | + | |
| 13 | + | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
| |||
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
| 56 | + | |
63 | 57 | | |
64 | 58 | | |
65 | 59 | | |
66 | 60 | | |
67 | 61 | | |
68 | | - | |
69 | | - | |
| 62 | + | |
| 63 | + | |
70 | 64 | | |
| 65 | + | |
71 | 66 | | |
72 | 67 | | |
73 | 68 | | |
| |||
0 commit comments