(opts)
| 163 | } |
| 164 | |
| 165 | function decodeOptions(opts): BroadcastOptions { |
| 166 | return { |
| 167 | rooms: new Set(opts.rooms), |
| 168 | except: new Set(opts.except), |
| 169 | flags: opts.flags, |
| 170 | }; |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * A cluster-ready adapter. Any extending class must: |