PayloadDisassembler class
Base class streaming payload disassembling.
Constructors
Payload |
Initializes a new instance of the PayloadDisassembler class. |
Properties
payload |
Methods
disassemble() | Begins the process of disassembling a payload and sending the resulting chunks to the PayloadSender to dispatch over the transport. |
get |
Gets the stream this disassembler is operating on. |
Constructor Details
PayloadDisassembler(PayloadSender, string)
Initializes a new instance of the PayloadDisassembler class.
new PayloadDisassembler(sender: PayloadSender, id: string)
Parameters
- sender
- PayloadSender
The PayloadSender used to send the disassembled payload chunks.
- id
-
string
The ID of this disassembler.
Property Details
payloadType
Method Details
disassemble()
Begins the process of disassembling a payload and sending the resulting chunks to the PayloadSender to dispatch over the transport.
function disassemble(): Promise<void>
Returns
Promise<void>
A completed Promise after the disassembled payload has been sent.
getStream()
Gets the stream this disassembler is operating on.
function getStream(): Promise<IStreamWrapper>
Returns
Promise<IStreamWrapper>
An IStreamWrapper with a Subscribable Stream.