Code Monkey home page Code Monkey logo

axway-streams / axway-amplify-streams-js Goto Github PK

View Code? Open in Web Editor NEW
78.0 15.0 27.0 3.01 MB

AMPLIFY Streams Javascript package containing SDK, documentation and sample applications

Home Page: https://www.axway.com/en/products/api-management/manage-apis/amplify-streams

License: Apache License 2.0

JavaScript 35.68% CSS 3.89% HTML 25.45% TypeScript 27.44% Vue 7.53%
sse server-sent-events streaming-data js nodejs angular vuejs streamdataio

axway-amplify-streams-js's Introduction

streamdataio-js

Streamdata.io by Axway (aka AMPLIFY Streams) Javascript SDK package containing SDK, documentation and sample applications.

The SDK allows the use of the Streams SaaS proxy to get data pushed from various sources and to use them in your application.

In this directory, you will find:

  • a minified version of the SDK for UI (streamdataio-web.min.js) and Node.js (streamdataio-node.min.js)
  • the documentation that helps you to understand how it works (doc)
  • several sample projects that show how to use this SDK within a Javascript application, using your favorite JS stack
    • stockmarket sample shows how to get data from a demo data source returning simulated market data, and bind them to a simple UI using JQuery
    • stockmarket-angular is another version of stockmarket projet using AngularJS

To run a sample and understand how it works, clone the git repository, open the index.html of the sample in your browser (Chrome, Firefox, Safari) and browse the code!

If you have any questions or feedback, feel free to ask: https://developer.axway.com/

Enjoy!

axway-amplify-streams-js's People

Contributors

anartovich avatar bordigoni avatar ctranxuan avatar dependabot[bot] avatar guillaumelamirand avatar loriepisicchio avatar motwingh avatar rbissey-axway avatar skeptikos57 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

axway-amplify-streams-js's Issues

An error occurred while streaming localhost URL

Hi,

I am using a localhost URL that gives me a JSON response. The issue is when I am using the URL in my Node js application. var targetUrl = 'http://localhost:3000/suvs';

, I am getting an error:
"
{ status: 2004,
cause: 'An error occurred while streaming http://localhost:3000/suvs. : Connection refused',
message: 'Network error. The proxy cannot connect to host. Please try again later.',
timestamp: 1538521423798,
sessionId: '77229760-cda3-414e-8606-db67c5f60281' }
ERROR! StreamDataError {
type: 'An error occurred while streaming http://localhost:3000/suvs. : Connection refused',
message: 'Network error. The proxy cannot connect to host. Please try again later.',
status: 2004,
original:
{ status: 2004,
cause: 'An error occurred while streaming http://localhost:3000/suvs. : Connection refused',
message: 'Network error. The proxy cannot connect to host. Please try again later.',
timestamp: 1538521423798,
sessionId: '77229760-cda3-414e-8606-db67c5f60281' },
source: 'server' }
Closing the SSE Stream.

"
This works perfectly fine when I use the URL provided by you (stockmarket.streamdata.io/prices).

Can you please help me? Could it be because the URL you provided redirects to HTTPS and my URL is HTTP?

Cannot openstream due to credential mode is 'include' when creating an EventSource

I am getting the following message from the browser when trying to open a data stream:

XMLHttpRequest cannot load https://streamdata.motwin.net/XXXXX?X-Sd-Token=YYYYYYYY. Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

General SSLEngine problem

{"type":"An error occurred while polling https://myapi.com/accounts/27644/state. : General SSLEngine problem","status":2001,"message":"General SSLEngine problem","source":"server"}

since we spent https we have this error in the console

logger.error without pattern

StreamData._buildErrorMessage = function (error) {
logger_1.Logger.error(error);

logging the error without a message pattern.
when the network is lost.
Uncaught TypeError: Cannot read property 'replace' of undefined in the Logger class

logger_1.Logger.error("error occurred: {0}", error);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.