2.56.0 • Published 6 months ago

@quotemedia.com/streamer v2.56.0

Weekly downloads
1
License
-
Repository
-
Last release
6 months ago

Overview

JavaScript streaming client that provides easy-to-use client APIs to connect and subscribe to QuoteMedia's market data streaming services.

https://quotemedia.com/

Getting Started

The Javascript streaming client is a library that contains all the necessary dependencies to run not only in the browser, but also in Node.js environments.

Browser Usage

To use the library in your browser project simply include the library file in your HTML page as a script.

Node.js Usage

Since the window object is not available in Node.js, it will need to be mocked before we import the library. 1. Mock the window object before importing the library:

```javascript

if (typeof global.window === 'undefined') { var window = { navigator: { userAgent: "atmosphere.js" }, document: {}, location: { protocol: 'https:'}, JSON: JSON };

   window.WebSocket = require("ws");
   window.EventSource = require("eventsource");
   window.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;

   global.window = window;
   global.location = window.location;
   global.WebSocket = window.WebSocket;
   global.EventSource = window.EventSource;
   global.navigator = window.navigator;
   global.document = window.document;

}

  1. Then import the library with require syntax:
    var Streamer = require("<path to the library>");
  2. The library is ready for use in your Node.js project.

Examples

  • Enterprise Example An example showing how to configure, create a stream, and subscribe to market data with tokens.
  • Enduser Example: An example showing how to configure, create a stream, and subscribe to market data with enduser credentials.
  • WMID Example: An example showing how to configure, create a stream, and subscribe to market data with a webmaster ID.
  • Stomp Example: An example showing how to subscribe and unsubscribe to market data using the Stomp protocol.
  • Reconnect Example: An example showing how configure and setup automatic reconnection.
  • Subscription Example: An example showing how to subscribe to the trade data market type.
2.53.0

9 months ago

2.54.0

8 months ago

2.55.0

7 months ago

2.56.0

6 months ago

2.51.0

12 months ago

2.52.0

10 months ago

2.50.0

1 year ago

2.49.0

1 year ago

2.46.0

1 year ago

2.48.0

1 year ago

2.44.0

2 years ago

2.43.0

2 years ago

2.41.0

2 years ago

2.40.0

2 years ago

2.39.0

2 years ago

2.36.0

2 years ago

2.33.0

2 years ago

2.31.0

3 years ago

2.27.0

3 years ago

2.25.0

3 years ago

2.24.0

3 years ago

2.21.0

4 years ago

2.20.0

4 years ago

2.18.1

4 years ago

2.5.0

5 years ago

1.7.1

7 years ago

1.7.2

7 years ago