Interface Subscription<T>
interface Subscription<T> { close(): void; off(type,
cb): void; off(type,
cb): void; off(type,
cb): void; on(type,
cb): void; on(type,
cb): void; on(type,
cb): void; } Methods
close
- close(): void
Returns void
off
- off(type, cb): void
Parameters
- type: "error"
- cb: ((error) => void)
- (error): void
Returns void
Returns void
- off(type, cb): void
Parameters
- type: "data"
- cb: ((data) => void)
Returns void
- off(type, cb): void
Parameters
- type: "close"
- cb: (() => void)
Returns void
on
- on(type, cb): void
Parameters
- type: "error"
- cb: ((error) => void)
- (error): void
Returns void
Returns void
- on(type, cb): void
Parameters
- type: "data"
- cb: ((data) => void)
Returns void
- on(type, cb): void
Parameters
- type: "close"
- cb: (() => void)
Returns void