@p4d/hermes-server

1.0.1 • Public • Published

Hermes Node Package

Description

Small package that forwards event messages to the queue server (Located here) through a socket

Installation

npm install p4d-hermes-server

Usage

Configure project and queue server details

	hermes.config(url, eventType, projectName, kronosId)

Send events

	hermes.send(data)

Full example

	var hermes      = require('p4d-hermes-server')

	hermes.config("http://192.168.88.48:9119", 'appData', 'nike_run_nba', 'nike_run_nba_1')

	var data = {
		name: 'new_experience',
		experience_id: 2
	}
	hermes.send(data)

Limitations

This module is dependant on the queue server being setup properly, and does not send messages on it's own

Possible future implementations

  • If queue server connection is not available, this package could try to send the event on it's own, while not providing a queue functionality, it would make it easier to send messages and not need to install a second node server.

Dependents (0)

Package Sidebar

Install

npm i @p4d/hermes-server

Weekly Downloads

1

Version

1.0.1

License

WTFPL

Last publish

Collaborators