Home > @imqueue/rpc > IMQClient > subscribe
IMQClient.subscribe() method
Adds subscription to service event channel
Signature:
subscribe(handler: (data: JsonObject) => any): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
handler |
(data: JsonObject) => any |
{Promise |
Returns:
Promise<void>