Commit 36e0ec3
authored
Fix Shared Worker state update on presence change and listen for
feat(shared-worker): early request terminate on pagehide
On `pagehide` without `bfcache` client on page will send `terminate` to Shared Worker for early
long-poll request termination and `leave` request sending (if configured).
fix(presence): fix channels and groups update in Shared worker
Fix an issue with the client's state update in Shared Worker caused by `-pnpres` suffixed entries
being removed from heartbeat / leave request channels and groups.pagehide (#445)1 parent e80c970 commit 36e0ec3
17 files changed
Lines changed: 337 additions & 125 deletions
File tree
- dist/web
- lib/core
- components
- src
- core
- components
- interfaces
- transport/subscription-worker
- web
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
1178 | 1185 | | |
1179 | 1186 | | |
1180 | 1187 | | |
1181 | | - | |
| 1188 | + | |
1182 | 1189 | | |
1183 | 1190 | | |
1184 | 1191 | | |
| |||
1194 | 1201 | | |
1195 | 1202 | | |
1196 | 1203 | | |
1197 | | - | |
| 1204 | + | |
1198 | 1205 | | |
1199 | 1206 | | |
1200 | 1207 | | |
| |||
1865 | 1872 | | |
1866 | 1873 | | |
1867 | 1874 | | |
1868 | | - | |
| 1875 | + | |
1869 | 1876 | | |
1870 | 1877 | | |
1871 | 1878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 | | |
2 | 11 | | |
3 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3179 | 3179 | | |
3180 | 3180 | | |
3181 | 3181 | | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
3182 | 3193 | | |
3183 | 3194 | | |
3184 | 3195 | | |
| |||
3430 | 3441 | | |
3431 | 3442 | | |
3432 | 3443 | | |
3433 | | - | |
| 3444 | + | |
3434 | 3445 | | |
3435 | 3446 | | |
3436 | 3447 | | |
| |||
3891 | 3902 | | |
3892 | 3903 | | |
3893 | 3904 | | |
| 3905 | + | |
| 3906 | + | |
| 3907 | + | |
| 3908 | + | |
3894 | 3909 | | |
3895 | 3910 | | |
3896 | 3911 | | |
| |||
3917 | 3932 | | |
3918 | 3933 | | |
3919 | 3934 | | |
3920 | | - | |
| 3935 | + | |
3921 | 3936 | | |
3922 | 3937 | | |
3923 | 3938 | | |
| |||
13593 | 13608 | | |
13594 | 13609 | | |
13595 | 13610 | | |
13596 | | - | |
13597 | | - | |
13598 | | - | |
13599 | | - | |
| 13611 | + | |
| 13612 | + | |
| 13613 | + | |
| 13614 | + | |
| 13615 | + | |
| 13616 | + | |
| 13617 | + | |
13600 | 13618 | | |
13601 | 13619 | | |
13602 | 13620 | | |
| |||
13959 | 13977 | | |
13960 | 13978 | | |
13961 | 13979 | | |
13962 | | - | |
13963 | | - | |
13964 | | - | |
13965 | | - | |
| 13980 | + | |
| 13981 | + | |
| 13982 | + | |
| 13983 | + | |
| 13984 | + | |
| 13985 | + | |
| 13986 | + | |
13966 | 13987 | | |
13967 | 13988 | | |
13968 | 13989 | | |
| |||
14789 | 14810 | | |
14790 | 14811 | | |
14791 | 14812 | | |
14792 | | - | |
| 14813 | + | |
14793 | 14814 | | |
14794 | 14815 | | |
14795 | 14816 | | |
| |||
14803 | 14824 | | |
14804 | 14825 | | |
14805 | 14826 | | |
| 14827 | + | |
| 14828 | + | |
| 14829 | + | |
| 14830 | + | |
| 14831 | + | |
14806 | 14832 | | |
14807 | 14833 | | |
14808 | 14834 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments