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.
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)
);
Download the repo and open index.html
in your favourite browser.
Alternatively, you can find a live functioning example here
We're always happy to help with any other questions you might have! Send us an email.