docs: structure clean & showcase

This commit is contained in:
jean-emmanuel 2019-03-29 09:43:58 +01:00
parent 0fb01dfe81
commit d512c49c65
7 changed files with 22 additions and 12 deletions

View file

@ -34,7 +34,12 @@ class Ipc extends EventEmitter {
this.socket.send('["pong"]')
})
this.open()
try {
this.open()
} catch(e) {
console.warn('Could not open a WebSocket connection')
console.log(e)
}
}