Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StreamDataIo

Streamdata.io JavaScript SDK

Hierarchy

  • StreamDataIo

Index

Methods

Static createEventSource

  • Create a new instance of the StreamDataEventSource prototype.

    The StreamDataEventSource is the main entry point for establishing Server Sent Event connection to a targeted JSON REST service URL.

    Parameters

    • url: string

      Mandatory. The targeted REST URL is formatted as follow:

      protocol://url(:port)(/localpath(?queryparameters))
    • appToken: string
    • Optional headers: string[]

      Optional. Any specific headers that have to be added to the request. It must be an array with the following structure:['Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==']

    • Optional authStragety: StreamDataAuthStrategy

    Returns StreamData