(prefix: DataPrefix_, suffix: string, field: DataField)
| 255 | } |
| 256 | |
| 257 | _resubscribe< |
| 258 | DataPrefix_ extends DataPrefix, |
| 259 | DataField extends Extract< |
| 260 | keyof (typeof dataHashes)[DataPrefix_]['fields'], |
| 261 | string |
| 262 | > = Extract<keyof (typeof dataHashes)[DataPrefix_]['fields'], string>, |
| 263 | >(prefix: DataPrefix_, suffix: string, field: DataField) { |
| 264 | if (`${prefix}:${suffix}>${field}` in this.subscriptions) { |
| 265 | this.pushCommand({ |
| 266 | type: RealtimeCommandType.SUBSCRIBE, |
| 267 | args: [prefix, suffix, field], |
| 268 | }); |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | flushCommandBuffer = () => { |
| 273 | if (this.commandBuffer.length === 0) { |
no test coverage detected