| var multiplex = require('multiplex') | |
| var protocol = multiplex() | |
| // this plex is used for the decoupled graph data (so the graph doesn't become too 'heavy') | |
| var nodes = protocol.createStream('nodes') | |
| // to request a blob send a hash over this channel | |
| var blobs = protocol.createStream('blobs') | |
| // to send the blob data that was requested use blob/{hash} | |
| var someBlob = protocol.createStream('blob/{hash}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment