@microsoft/signalr-wrapper
v1.0.2
Published
A wrapper over signalR package to handle connection handshake and events.
Downloads
1
Maintainers
Readme
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.