JSLib Reference Manual / Exports / SBMessage
Class: SBMessage#
SBMessage
Body should be below 32KiB, though it tolerates up to 64KiB
Hierarchy#
SBMessage↳
SBFile
Table of contents#
Constructors#
Properties#
Methods#
Constructors#
constructor#
• new SBMessage(channel, body?)
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>
Methods#
send#
▸ send(): Promise<string>
SBMessage.send()
Returns#
Promise<string>