This is an implementation of server-sent events which work in the browser and Node.js. This library is primarily intended to be used in code generated by AutoRest and autorest.typescript
.
- LTS versions of Node.js
- Latest versions of Safari, Chrome, Edge, and Firefox.
See our support policy for more details.
This package is primarily used in generated code and not meant to be consumed directly by end users.
A EventMessage
represents a message sent in an event stream.
Examples can be found in the samples
folder.
You can build and run the tests locally by executing rushx test
. Explore the test
folder to see advanced usage and behavior of the public classes.
If you run into issues while using this library, please feel free to file an issue.
If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.