SignalR
Introduction
We use SignalR 2 to implement real-time to our widgets.
You can use the official documentation to implement a custom communication.
JavaScript Client
note
The official guide assumes intermediate level knowledge of HTML and JavaScript.
Installation
We implemented a custom JS library to use in our widget, if you want, you can use it to connect to our push server.
Requirements:
Current fxs-push.js version.
The easiest way to try out fxspush.js Is include in your site:
<script src='https://staticcontent.fxstreet.com/http-push/fxspush.js'></script>
fxspush
Instance
The <script> var push = FXStreetPush.PushNotification.getInstance(); </script>
Options
<script>
var options = { culture: 'en-US' };
var push = FXStreetPush.PushNotification.getInstance();
</script>
In order to get instructions of Methods to connect specifically to News, please click here. The use of SignalR has been deprecated for our Economic Calendar.