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

grexxconnect-ess

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grexxconnect-ess - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json

@@ -5,3 +5,3 @@ {

"description" : "Grexx Connect - External System Service Helper",
"version" : "1.0.5",
"version" : "1.0.6",
"contributors" : [

@@ -8,0 +8,0 @@ {

@@ -8,3 +8,8 @@ # GrexxConnect External System Service (ESS) Helper

## Example
## Features
* auto-reconnect (since v1.0.5)
* custom monitoring data (since v1.0.5)
* basic receiving and responding to ESS messages
## Simple Example
```

@@ -29,4 +34,36 @@ "use strict";

});
```
GrexxConnectEss.on('connected', () => console.info('Connected!'));
## Full Example
```
"use strict";
const EssConnect = require('grexxconnect-ess');
const GrexxConnectEss = new EssConnect({
applicationName: "My Custom ESS v2.4",
username: "John",
password: "JohnsPassword",
server: "wss://server.com",
debug: true
});
GrexxConnectEss.on('message', Message => {
console.info('Received a message', Message.parsed, Message.content);
const reversedValue = (Message.parsed.content || '').split("").reverse().join("");
Message.resolve([{
reference: 'outputField',
values: [{ value: reversedValue }]
}])
});
GrexxConnectEss.setMonitoringResponse(() => {
return {
//== required. can be 'ok', 'warning', 'error'
status: 'ok',
//== Optional extra status data. Can be whatever you want.
messagesInQueue: 0,
lastMessage: '10 days ago'
};
});
GrexxConnectEss.on('authorized', serviceName => console.info('Authorized!', serviceName));

@@ -33,0 +70,0 @@ GrexxConnectEss.on('disconnected', () => console.info('Disconnected!'));

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