# msgpack5-stream **Repository Path**: mirrors_watson/msgpack5-stream ## Basic Information - **Project Name**: msgpack5-stream - **Description**: A duplex stream wrapper for msgpack5 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-04-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # msgpack5-stream Given a regular duplex stream, this module will return a duplex stream optimised for sending and receiving [msgpack5](https://github.com/mcollina/msgpack5) messages. [![Build status](https://travis-ci.org/watson/msgpack5-stream.svg?branch=master)](https://travis-ci.org/watson/msgpack5-stream) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) ## Usage ```js 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 = msgpack(net.connect(3000)) dup.write({hello: 'world'}) }) ``` ## License MIT