Class: default
Constructors
new default()
Copied to your clipboard
new default(
channelMessengerDelegate,
_sourceChannel,
_sourceProtocolVersion,
_targetProtocolVersion,
_protocolHandlersModule?): default
Parameters
Parameter | Type |
---|
channelMessengerDelegate
| |
_sourceChannel
| |
_sourceProtocolVersion
| |
_targetProtocolVersion
| |
_protocolHandlersModule ?
| |
Returns
default
Methods
addTarget()
Copied to your clipboard
addTarget(targetChannel, targetChannelInfo): void
Parameters
Parameter | Type |
---|
targetChannel
| |
targetChannelInfo
| |
Returns
void
removeTarget()
Copied to your clipboard
removeTarget(targetChannel): void
Parameters
Parameter | Type |
---|
targetChannel
| |
Returns
void
hasTarget()
Copied to your clipboard
hasTarget(targetChannel): boolean
Parameters
Parameter | Type |
---|
targetChannel
| |
Returns
boolean
getTarget()
Copied to your clipboard
getTarget(targetChannel): undefined | TargetChannelInfo
Parameters
Parameter | Type |
---|
targetChannel
| |
Returns
undefined
| TargetChannelInfo
sendMessage()
Copied to your clipboard
sendMessage<T>(
targetChannel,
message,
requestId?): boolean
Type Parameters
Parameters
Parameter | Type |
---|
targetChannel
| |
message
| |
requestId ?
| string
|
Returns
boolean
removeListener()
Copied to your clipboard
removeListener(): void
Returns
void