0.0.7 • Published 1 year ago

chimera-js-integrator v0.0.7

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

ChimeraJS Integrator

tests npm license

Communication Extension for JS to ChimeraPy's Pythonic Runtime Environment using ZeroMQ

Architecture Diagram

Installation

Use the following command to install the package:

npm install chimera-js-integrator

Usage

First, you need to install the plugin to your Vue application. Use the following to start:

import { ChimeraJSIntegrator } from 'chimera-js-integrator'
import mitt from 'mitt'

// Create the emitter
const emitter = mitt()

// Install plugin (provide the emitter instance from mitt)
// You can also omit the eventArray parameter if you can to
// capture all events and broadcast
const chimerajs = new ChimeraJSIntegrator(emitter, ['event1', 'event1'], 6767)

Option Parameters

ParameterTypeAccepted or Example inputsRequiredDescription
emittermitt.Emittermitt()TrueThe emitter used to communicate between the JS application and ChimeraPy cluster
eventArraystring[]'event1', 'event2' or []FalseProvide an array of events to listen and distribute. [] implies that all events will be broadcast. BEWARE: avoid broadcasting sensitive data
wsPortnumber6767FalseThe port the integrator will bind to the ChimeraPy Cluster's WS Server (the WSS's port)

Example

TODO

0.0.7

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago