Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vital-ai/haley

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vital-ai/haley

Client library to access Haley AI service

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Haley JS Client

Haley JS Client Library to communicate with Haley AI service

Installation

npm install @vital-ai/haley

Usage

var haleyModule = require('@vital-ai/haley');

var VitalService = haleyModule.VitalService;
var HaleyAPI = haleyModule.HaleyAPI;
var HaleyAPIVitalServiceImpl = haleyModule.HaleyAPIVitalServiceImpl;

var APP_ID = ...;

var ENDPOINT = 'endpoint.' + APP_ID;

var EVENTBUS_URL = 'https://haley-ai-login.vital.ai/eventbus';

var _vitalservice = new VitalService(ENDPOINT, EVENTBUS_URL, function(){

  console.log('connected to endpoint, sessionID: ' + _vitalservice.impl.sessionID);

  var impl = new HaleyAPIVitalServiceImpl(_vitalservice);

  new HaleyAPI(impl, false, function(error, instance){

    if(error) {
      //handle error
    }

    console.log("haley api ready for action");

    onHaleyAPIReady();

  });

}, function(error){

  console.error('couldn\'t connect to endpoint -' + error);
	
});

Tests

npm test

Contributing

Keywords

FAQs

Package last updated on 02 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc