SignalClient.subscribe()
Home > @backstage/plugin-signals
> SignalClient
> subscribe
Signature:
subscribe<TMessage extends JsonObject = JsonObject>(channel: string, onMessage: (message: TMessage) => void): SignalSubscriber;
Parameters
Parameter |
Type |
Description |
---|---|---|
channel |
string | |
onMessage |
(message: TMessage) => void |