(
private createInitial: () => T,
private runStream: (context: StreamContext<T>) => Promise<void>,
private resetOnReconnect = false,
)
| 55 | if (this.listeners.size === 1) { |
| 56 | this.start(); |
| 57 | } |
| 58 | return () => { |
| 59 | this.listeners.delete(listener); |
| 60 | if (this.listeners.size === 0) { |
| 61 | this.stop(); |
| 62 | } |
| 63 | }; |
| 64 | }; |
| 65 | |
| 66 | getSnapshot = (): StreamSnapshot<T> => this.snapshot; |
nothing calls this directly
no outgoing calls
no test coverage detected