-
-
Save mdobson/5dc702ed52f5d49b6607 to your computer and use it in GitHub Desktop.
Better method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var zetta = require('zetta'); | |
var PeerRegistry = require('zetta').PeerRegistry; | |
var DeviceRegistry = require('zetta').DeviceRegistry; | |
zetta({ peerRegistry: new PeerRegistry({path: './mypeers', collection: 'peers'}), registry: new DeviceRegistry({path: './mydevices', collection: 'devices'})}) | |
.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment