* @interface Subscriber * @memberof PubSubAdapter
| 31 | * @memberof PubSubAdapter |
| 32 | */ |
| 33 | interface Subscriber { |
| 34 | /** |
| 35 | * called when a new subscription the channel is required |
| 36 | * @param {String} channel the channel to subscribe |
| 37 | */ |
| 38 | subscribe(channel: string): void; |
| 39 | |
| 40 | /** |
| 41 | * called when the subscription from the channel should be stopped |
| 42 | * @param {String} channel |
| 43 | */ |
| 44 | unsubscribe(channel: string): void; |
| 45 | } |
| 46 | |
| 47 | export default PubSubAdapter; |
no outgoing calls
no test coverage detected