1.0.2 • Published 2 years ago

@microsoft/signalr-wrapper v1.0.2

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Getting Started with signalr-wrapper package.

execute below commands to add the package to your project.

yarn add @microsoft/signalr-wrapper

or

npm install @microsoft/signalr-wrapper

Use SignalRWrapper Component if you would like to happen connection establishment, start and stop automatically based on component mount and un-mounts.

The component currently doesn't support listening to specific user connection messages, it has to be used excluesively if the application has requirement to broadcast messages to all the connected clients.

Or

You can alternatively use methods specified in SignalRWrapperMethods for establishing, starting and stoping the connections at your convenience in different places of your application.

By using methods you application can listen to only their own requests by utilizing the connectionID property received from start method.