ae84780ce1
For packages that have been migrated to ESM, Rolled up dts files are no longer used but they are still packaged because our `files` field include an entry of `dist/`. Since they are not used anymore, this PR stops generating them, instead of more complicated approach of excluding them from `npm pack`. |
||
---|---|---|
.. | ||
.vscode | ||
review | ||
samples/v1-beta | ||
samples-dev | ||
src | ||
test | ||
CHANGELOG.md | ||
README.md | ||
api-extractor.json | ||
eslint.config.mjs | ||
package.json | ||
sample.env | ||
tsconfig.json | ||
vitest.config.ts |
README.md
Web PubSub client protobuf protocol library for JavaScript
Azure Web PubSub is a cloud service that helps developers easily build real-time features in web applications with publish-subscribe patterns at scale.
You can use this library to add protobuf subprotocols including protobuf.reliable.webpubsub.azure.v1
and protobuf.webpubsub.azure.v1
support to @azure/web-pubsub-client
library.
Getting started
Currently supported environments
Prerequisites
1. Install the @azure/web-pubsub-client-protobuf
package
npm install @azure/web-pubsub-client-protobuf
2. Use Protobuf protocols
const client = new WebPubSubClient("client-access-url", { protocol: WebPubSubProtobufReliableProtocol() });
Troubleshooting
-
Enable logs
You can set the following environment variable to get the debug logs when using this library.
export AZURE_LOG_LEVEL=verbose
For more detailed instructions on how to enable logs, you can look at the @azure/logger package docs.
-
Live Trace
Use Live Trace tool from Web PubSub portal to view the live traffic.
Additional resources
-
Learn more about client permission, see permissions
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.