Commit f6cd3b7
fix(sdk): only bridge result/updated frames when Meteor still has the invoker
After force-logout cycles (e.g. resetUserE2EKey → ws.terminate → SDK
reconnect), stale result/updated frames for methods whose Meteor invoker
already cleared can arrive over the SDK socket. _process_updated then
throws "No callback invoker for method N" out of an async generator —
the throw escapes the bridge's try/catch as an unhandled rejection and
aborts Meteor's frame queue, so subsequent login result frames never
land and the page stays wedged on /login.
Gate the result/updated bridge on _methodInvokers[id] existing so stale
frames are silently dropped instead of corrupting Meteor's frame
processing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 310a44f commit f6cd3b7
1 file changed
Lines changed: 22 additions & 2 deletions
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
| 66 | + | |
54 | 67 | | |
55 | 68 | | |
56 | 69 | | |
57 | 70 | | |
58 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
59 | 79 | | |
60 | 80 | | |
61 | 81 | | |
| |||
0 commit comments