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