multihack-wire

2.0.1 • Public • Published

multihack-wire

Travis CI Standard - JavaScript Style Guide

Multihack's custom streaming wire protocol.

Designed for sending many large files in random chunk sizes, but also lots of tiny edits.

Needs to be paired with something like stream-throttle or it will overload a connection.

protocol

request project

<00000000><filepath length><filepath><file length><file content>`
    8b           32b           xb         32b          xb

provide file

<10000000><filepath length><filepath><file length><file content>`
    8b          32b            xb        32b           xb

change file

<01000000><filepath length><filepath><payload length><json payload>`
    8b         32b            xb           32b            xb

delete file

<11000000><filepath length><filepath>`
    8b          32b           xb

Readme

Keywords

none

Package Sidebar

Install

npm i multihack-wire

Weekly Downloads

0

Version

2.0.1

License

MIT

Last publish

Collaborators

  • rationalcoding