JSLib Reference Manual / Exports / SBMessage
Class: SBMessage#
Class SBMessage
Body should be below 32KiB, though it tolerates up to 64KiB
Table of contents#
Constructors#
Properties#
Accessors#
Methods#
Constructors#
constructor#
• new SBMessage(channel, bodyParameter?, sendToJsonWebKey?)
Parameters#
Name |
Type |
Default value |
|---|---|---|
|
|
|
|
|
|
|
|
|
Properties#
MAX_SB_BODY_SIZE#
• MAX_SB_BODY_SIZE: number
[SB_MESSAGE_SYMBOL]#
• [SB_MESSAGE_SYMBOL]: boolean = true
channel#
• channel: Channel
contents#
• contents: SBMessageContents
ready#
• ready: Promise<SBMessage>
Accessors#
encryptionKey#
• get encryptionKey(): undefined | CryptoKey
Returns#
undefined | CryptoKey
sendToPubKey#
• get sendToPubKey(): undefined | JsonWebKey
Returns#
undefined | JsonWebKey
Methods#
send#
▸ send(): Promise<string>
SBMessage.send()
Returns#
Promise<string>