We use SignalR 2 to implement real-time to our widgets.
You can use the official documentation to implement a custom communication.
We implemented a custom JS library to use in our widget, if you want, you can use it to connect to our push server.
Current fxs-push.js version.
The easiest way to try out fxspush.js Is include in your site: