Properties
destroyed
destroyed: boolean
Private lastEventId
lastEventId: number = null
readable
readable: boolean
Readonly readableEncoding
readableEncoding: BufferEncoding | null
Readonly readableEnded
readableEnded: boolean
Readonly readableFlowing
readableFlowing: boolean | null
Readonly readableHighWaterMark
readableHighWaterMark: number
Readonly readableLength
readableLength: number
Readonly readableObjectMode
readableObjectMode: boolean
Readonly writable
writable: boolean
Readonly writableCorked
writableCorked: number
Readonly writableEnded
writableEnded: boolean
Readonly writableFinished
writableFinished: boolean
Readonly writableHighWaterMark
writableHighWaterMark: number
Readonly writableLength
writableLength: number
Readonly writableObjectMode
writableObjectMode: boolean
Adapted from https://raw.githubusercontent.com/EventSource/node-ssestream Transforms "messages" to W3C event stream content. See https://html.spec.whatwg.org/multipage/server-sent-events.html A message is an object with one or more of the following properties:
If constructed with a HTTP Request, it will optimise the socket for streaming. If this stream is piped to an HTTP Response, it will set appropriate headers.