Skip to content

Angular service to get rid of signalr-client.js and jquery.js dependencies in order to connect with old hubs.

License

Notifications You must be signed in to change notification settings

Simone-Convertini/SignalR-Over-WebSocket-Angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If you need to use some services provided by old signalr hubs Microsoft.AspNet.SignalR, you have to install npm signalR-client and jquery as dependencies. But since I really despite the idea to install jquery in an Angular project, I decided to write this service.

Example Component:

A test component is located in the example folder, providing a chat implementation using Angular instead of razor pages as shown in the Microsoft Docs.

Service and Models:

The Service uses only WebSocket and JsRx to work. For each hub's function the service provide a Subject as an argument provider. Subscribe to that subject to bind your functions. Also the models of the WebSoket messages and responses are provided.

If you want to deepen the topic read this article.

About

Angular service to get rid of signalr-client.js and jquery.js dependencies in order to connect with old hubs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published