()
| 155 | } |
| 156 | |
| 157 | destroy() { |
| 158 | for (const channel of this.subscriptions) { |
| 159 | const [key, field] = splitStr(channel, '>', 2); |
| 160 | const [prefix, suffix] = splitStr(key, ':', 2); |
| 161 | |
| 162 | this.unsubscribe(prefix as any, suffix, field); |
| 163 | } |
| 164 | } |
| 165 | }, |
| 166 | ); |
| 167 | export type RealtimeContext = InstanceType<ReturnType<typeof RealtimeContext>>; |
no test coverage detected