Rename callback to ready again

This commit is contained in:
Francisco Baio Dias
2016-03-20 17:25:17 +00:00
parent 653f7473aa
commit c389020884
2 changed files with 3 additions and 3 deletions

View File

@ -17,10 +17,10 @@ function WebSockets () {
options = {}
}
options.connect = options.connect || function noop () {}
options.ready = options.ready || function noop () {}
const maOpts = multiaddr.toOptions()
const conn = new SWS('ws://' + maOpts.host + ':' + maOpts.port)
conn.on('connect', options.connect)
conn.on('connect', options.ready)
conn.getObservedAddrs = () => {
return [multiaddr]
}