Commit 03f111f
committed
Simplify subscription disposal
unsubscribe without arguments "[u]nsubscribes all listeners to
messages on this channel. This removes all earlier subscriptions."
Also, Ably staff explained to me that "[...] you don't need to call
leave() if calling detach(): the server enforces the invariant
that a client cannot be present on a channel they are not attached to,
so detach() will also cause that client to leave the presence set)."1 parent 35e55dc commit 03f111f
1 file changed
Lines changed: 2 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 136 | + | |
157 | 137 | | |
158 | | - | |
| 138 | + | |
159 | 139 | | |
160 | 140 | | |
161 | 141 | | |
| |||
165 | 145 | | |
166 | 146 | | |
167 | 147 | | |
168 | | - | |
169 | 148 | | |
170 | 149 | | |
171 | 150 | | |
| |||
0 commit comments