SignalR

Introduction

We use SignalR 2 to implement real-time to our widgets.

You can use the official documentation to implement a custom communication.

  1. .NET Client (C#)
  2. JavaScript Client
  3. Java Client

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:

  1. jQuery JavaScript Library v1.11.3 or newer
  2. ASP.NET SignalR JavaScript Library v2.2.0

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>

The fxspush Instance

<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.