Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/t-mullen/multihack-wire

The streaming wire protocol for Multihack
https://github.com/t-mullen/multihack-wire

binary protocol realtime stream

Last synced: 15 days ago
JSON representation

The streaming wire protocol for Multihack

Awesome Lists containing this project

README

        

# multihack-wire

![Travis CI](https://travis-ci.org/RationalCoding/multihack-wire.svg?branch=master)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

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>`
8b 32b xb 32b xb
```

### `provide file`

```
<10000000>`
8b 32b xb 32b xb
```

### `change file`

```
<01000000>`
8b 32b xb 32b xb
```

### `delete file`

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