cf8d25ff5e
After moving to ESM/tshy, we no longer build tests/samples. This PR enables running "typecheck" as an optional rush bulk command, and fixes some of the errors found. The known errors reported on files from vite/vitest/chai are ignored. The update-snippets dev-tool command throws error of reading undefined in some cases, adding a null check fixes it. Snippets are updated as well after snippets.spec.ts files are fixed. |
||
---|---|---|
.. | ||
config | ||
review | ||
samples | ||
samples-dev | ||
src | ||
test | ||
CHANGELOG.md | ||
README.md | ||
api-extractor.json | ||
package.json | ||
sample.env | ||
tsconfig.browser.config.json | ||
tsconfig.json | ||
vitest.browser.config.ts | ||
vitest.config.ts |
README.md
Azure Core SSE library for JavaScript
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
.
Getting started
Requirements
Currently supported environments
- LTS versions of Node.js
- Latest versions of Safari, Chrome, Edge, and Firefox.
See our support policy for more details.
Installation
This package is primarily used in generated code and not meant to be consumed directly by end users.
Key concepts
EventMessage
A EventMessage
represents a message sent in an event stream.
Examples
Examples can be found in the samples
folder.
Next steps
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.
Troubleshooting
If you run into issues while using this library, please feel free to file an issue.
Contributing
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.