Create a new file stream.
The name of the file.
The raw contents of the file. If the content is being constructed manually this can be a string (ex. weather stream constructed from external sources). If this is a file it is recommended that a Buffer be used.
The raw file contents.
The name of the file.
Streams the attachment to a socket.
Stores file contents for use in the simulation. All file names must begin with
attachment:/
.