new SenderLink()
Extends
Methods
detach(optionsopt) → {Promise}
Detach the link from the session
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
object |
<optional> |
detach frame options |
- Inherited From:
Returns:
- Type
- Promise
send(msg, optionsopt) → {Promise|null}
Sends the given message, with the given options on this link
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
msg |
object | string | array | Message to send. Will be encoded using sender link policy's encoder. |
|||||||||||||
options |
object |
<optional> |
An object of options to attach to the message including: annotations, properties, Properties
|
Returns:
- Type
- Promise | null
Events
attached
Attached event
- Inherited From:
detached
Detached event
- Inherited From:
errorReceived
Error received event
Parameters:
Name | Type | Description |
---|---|---|
error |
object | the received error |
- Inherited From: