Skip to content

radicalbit/helicon-javascript-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Helicon JavaScript Sample App

This repository contains the files required to run the Helicon JavaScript Quickstart.

Helicon is a simple, scalable, robust, code-free and generic platform to enable and productise the next generation of "online modified", real-time event stream ML/AI models.

Sample App

This project is composed of a index.html and a script.js file that illustrates how to use the Helicon Javascript SDK.

The javascript usage of the sdk can be summarized in the lines below:

// Create a new Helicon SDK istance
const heliconWriteClient = new Helicon.HeliconWriteClient('hostAddress', 'clientId', 'tenant');

// add some payload...
const record = {
  "name": "record1",
  "temperature": "29"
};

// and send it to the stream
heliconWriteClient.write('my_stream', record)
  .then(
    () => console.log('payload published!'),
    (errorMessage) => console.error(errorMessage)
);

How to Run the app

Download the repo and open index.html in your favourite browser. Alternatively, you can find a live functioning example here

Support

We're always happy to help with any other questions you might have! Send us an email.

About

Helicon javascript client publish and subscribe example

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •