| 571 | * Interface to register and unregister `listeners` on the client / tools side. |
| 572 | */ |
| 573 | export interface RemoteClient extends Remote { |
| 574 | /** |
| 575 | * Registers a listener for the given notification. |
| 576 | * @param type the notification type to register for. |
| 577 | * @param registerParams special registration parameters. |
| 578 | * @return a `Disposable` to unregister the listener again. |
| 579 | */ |
| 580 | register<RO>(type: NotificationType0<RO>, registerParams?: RO): Thenable<Disposable>; |
| 581 | register<P, RO>(type: NotificationType<P, RO>, registerParams?: RO): Thenable<Disposable>; |
| 582 | |
| 583 | /** |
| 584 | * Registers a listener for the given notification. |
| 585 | * @param unregisteration the unregistration to add a corresponding unregister action to. |
| 586 | * @param type the notification type to register for. |
| 587 | * @param registerParams special registration parameters. |
| 588 | * @return the updated unregistration. |
| 589 | */ |
| 590 | register<RO>(unregisteration: BulkUnregistration, type: NotificationType0<RO>, registerParams?: RO): Thenable<BulkUnregistration>; |
| 591 | register<P, RO>(unregisteration: BulkUnregistration, type: NotificationType<P, RO>, registerParams?: RO): Thenable<BulkUnregistration>; |
| 592 | |
| 593 | /** |
| 594 | * Registers a listener for the given request. |
| 595 | * @param type the request type to register for. |
| 596 | * @param registerParams special registration parameters. |
| 597 | * @return a `Disposable` to unregister the listener again. |
| 598 | */ |
| 599 | register<R, E, RO>(type: RequestType0<R, E, RO>, registerParams?: RO): Thenable<Disposable>; |
| 600 | register<P, R, E, RO>(type: RequestType<P, R, E, RO>, registerParams?: RO): Thenable<Disposable>; |
| 601 | |
| 602 | /** |
| 603 | * Registers a listener for the given request. |
| 604 | * @param unregisteration the unregistration to add a corresponding unregister action to. |
| 605 | * @param type the request type to register for. |
| 606 | * @param registerParams special registration parameters. |
| 607 | * @return the updated unregistration. |
| 608 | */ |
| 609 | register<R, E, RO>(unregisteration: BulkUnregistration, type: RequestType0<R, E, RO>, registerParams?: RO): Thenable<BulkUnregistration>; |
| 610 | register<P, R, E, RO>(unregisteration: BulkUnregistration, type: RequestType<P, R, E, RO>, registerParams?: RO): Thenable<BulkUnregistration>; |
| 611 | /** |
| 612 | * Registers a set of listeners. |
| 613 | * @param registrations the bulk registration |
| 614 | * @return a `Disposable` to unregister the listeners again. |
| 615 | */ |
| 616 | register(registrations: BulkRegistration): Thenable<BulkUnregistration>; |
| 617 | } |
| 618 | |
| 619 | class ConnectionLogger implements Logger, RemoteConsole { |
| 620 |
no outgoing calls
no test coverage detected