Use ipfs signalling server in examples

This commit is contained in:
haad 2016-12-30 12:16:43 +01:00
parent 026740faa9
commit 1230479aee
2 changed files with 10 additions and 4 deletions

View File

@ -11,12 +11,15 @@
<script type="text/javascript"> <script type="text/javascript">
const username = new Date().getTime() const username = new Date().getTime()
const channel = 'browser-examples' const channel = 'orbitdb-browser-examples'
const key = 'greeting' const key = 'greeting'
const elm = document.getElementById("result") const elm = document.getElementById("result")
const ipfs = new IpfsDaemon() const ipfs = new IpfsDaemon({
// dev server: webrtc-star-signalling.cloud.ipfs.team
SignalServer: '188.166.203.82:20000',
})
function handleError(e) { function handleError(e) {
console.error(e.stack) console.error(e.stack)

View File

@ -4,12 +4,15 @@ const IPFS = require('ipfs-daemon/src/ipfs-browser-daemon')
const OrbitDB = require('../../src/OrbitDB') const OrbitDB = require('../../src/OrbitDB')
const username = new Date().getTime() const username = new Date().getTime()
const channel = 'browser-examples' const channel = 'orbitdb-browser-examples'
const key = 'greeting' const key = 'greeting'
const elm = document.getElementById("result") const elm = document.getElementById("result")
const ipfs = new IPFS() const ipfs = new IPFS({
// dev server: webrtc-star-signalling.cloud.ipfs.team
SignalServer: '188.166.203.82:20000',
})
function handleError(e) { function handleError(e) {
console.error(e.stack) console.error(e.stack)