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

@555platform/555parser.ts

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@555platform/555parser.ts

555 Platform Message Parser

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-96.49%
Maintainers
5
Weekly downloads
 
Created
Source

Build

555 Platform Message Format and Chat Message Format Typescript Parser

All of the Platform Message Format functions reside in PMF namespace and Chat Message Format functions are in CMF namespace.

Install and Use

npm i @555platform/555parser.ts -S

import { PMF, CMF } from '@555platform/555parser.ts';

PMF Namespace Functions

  • pmfBuilder(options: EnvelopeOptions, payload: object) - builds PMF message with specified payload
  • pmfParser(message: Envelope) - returns payload object
  • pmfNamespace(message: Envelope) - returns namespace in PMF Envelope

PMF Types

EnvelopeOptions = {
  auth: string;
  namespace: string;
  tid?: string;
  logLevel?: PmfLogLevels;
  ttl?: number;
};
Envelope = {
  auth: string;
  mid: string;
  namespace: string;
  tid: string;
  logLevel: PmfLogLevels;
  ttl: number;
  version: string;
  timestamp: Date;
  body: Object;
};

FAQs

Package last updated on 30 Oct 2019

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