IRuntimeSignaler interface
Duck type of something that provides the expected signalling functionality: A way to verify we can signal, a way to send a signal, and a way to listen for incoming signals
Properties
client |
|
connected | |
logger |
Methods
off("connected", (client |
|
on("connected", (client |
|
on("signal", (message: IInbound |
|
submit |
Property Details
clientId
clientId: undefined | string
Property Value
undefined | string
connected
connected: boolean
Property Value
boolean
logger
logger: ITelemetryLogger
Property Value
ITelemetryLogger
Method Details
off("connected", (clientId: string) => void)
function off(event: "connected", listener: (clientId: string) => void): IRuntimeSignaler
Parameters
- event
-
"connected"
- listener
-
(clientId: string) => void
Returns
on("connected", (clientId: string) => void)
function on(event: "connected", listener: (clientId: string) => void): IRuntimeSignaler
Parameters
- event
-
"connected"
- listener
-
(clientId: string) => void
Returns
on("signal", (message: IInboundSignalMessage, local: boolean) => void)
function on(event: "signal", listener: (message: IInboundSignalMessage, local: boolean) => void): IRuntimeSignaler
Parameters
- event
-
"signal"
- listener
-
(message: IInboundSignalMessage, local: boolean) => void
Returns
submitSignal(string, any)
function submitSignal(type: string, content: any)
Parameters
- type
-
string
- content
-
any