Constructor
new Stream(stream)
- Description:
- Creates a new Stream instance
- Source:
Parameters:
Name | Type | Description |
---|---|---|
stream |
Methods
end()
- Description:
- Closes the stream
- Source:
write(text) → {string|undefined}
- Description:
- Writes text to the message
- Source:
Parameters:
Name | Type | Description |
---|---|---|
text |
Returns:
- error message if the stream is closed
- Type
- string | undefined