Socket
Socket
Sign inDemoInstall

msgpack5-stream

Package Overview
Dependencies
21
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    msgpack5-stream

A duplex stream wrapper for msgpack5


Version published
Weekly downloads
5
increased by25%
Maintainers
1
Install size
829 kB
Created
Weekly downloads
 

Readme

Source

msgpack5-stream

Given a regular duplex stream, this module will return a duplex stream optimised for sending and receiving msgpack5 messages.

Build status js-standard-style

Usage

var net = require('net')
var msgpack = require('msgpack5-stream')

var server = net.createServer(function (socket) {
  var dup = msgpack(socket)

  dup.on('data', function (obj) {
    console.log(obj) // { hello: 'world' }
  })
})

server.listen(3000, function () {
  var dup = msgpack5(net.connect(3000))
  dup.write({hello: 'world'})
})

License

MIT

Keywords

FAQs

Last updated on 18 Oct 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc