2.0.1 • Published 7 years ago

multihack-wire v2.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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