Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Swarm: [
'/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star'
]
}
}
});
ipfs.once('ready', () => {
ipfs.id((err, info) => {
if (err) {
throw err;
}
});
});
Y({
db: {
name: 'indexeddb'
},
connector: {
name: 'ipfs',
room: 'pmpos-protocol',
ipfs: ipfs
},
share: {
chat: 'Array',
commits: 'Array'
}
}).then((y) => {
dispatchCommitProtocol(dispatch, y.share.commits);
dispatchCommitEvent(dispatch, y.share.commits.toArray());