New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fh-messaging-client

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-messaging-client

client for calling fh-messaging

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
5
Weekly downloads
 
Created
Source

fh-messaging-client

client for interfacing with fh-messaging both in the core and the mbaas

usage:


var fhMessaging = require('fh-messaging-client')(metricsConfig)


fhMessaging.createAppMessage(topic,message,cb)

//topic is normally fhact

//message is an object generated by the reporting client normally: 

{
      guid:string (instance app id),
      appid:string (widget project id),
      domain:string,
      bytes:fullparams.bytes, //number
      cached:false,
      cuid:_fh.cuid || "",
      destination:_fh.destination || "",
      agent: fullparams.agent,
      'function':fullparams.funct || "",
      ipAddress:ip,
      scriptEngine:"node",
      'status':fullparams.status || "",
      time:fullparams.time || 0,
      startTime : fullparams.start,
      endTime : fullparams.end,
      'version':_fh.version || 0}



/*
     * 
     * @param from Number timestamp
     * @param to Number timestamp
     * @param level string (domain/app)
     * @param data Object (rolled up metrics)
     * @param cb function
     * @desc from and to are the time range the metrics being sent covers. The level is either domain or app and the data is rolled up metrics being sent
*/

fhMessaging.sendMbaasMetrics(from, to , level, data, cb);

FAQs

Package last updated on 03 Oct 2018

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