npm.io
1.0.0-BETA.8 • Published 1 month ago

arunacore-api

Licence
Apache-2.0
Version
1.0.0-BETA.8
Deps
2
Size
97 kB
Vulns
0
Weekly
0

ArunaCore - JavaScript API

Introduction

ArunaCore is a framework that helps developers to build their own applications.

with it is ease to create and manange a new application created from scratch or to use on top of existing application.

It uses websocket to communicate with your application and it is easy to use.

The API

Installing:

To install, just use npm install arunacore-apior yarn add arunacore-api.

Creating a client:
import { ArunaClient } from 'arunacore-api';

const client = new ArunaClient('localhost', 3000, '<clientName>');

client.connect();
Receiving a message:

The message is received as a JSON object with parsed informations.

client.on('message', (message) => {
  console.log(message);
});
The full documentation:

Because it is still in beta, we do not have formal and complete documentation. Although it can already be used in production, we recommend waiting until version 1.0.0 is released.

Keywords