Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
feat: new peer-discovery interface compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Jan 28, 2017
1 parent f299f99 commit 011ada5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class WebRTCStar {
}

this.discovery = new EE()
this.discovery.start = (callback) => { setImmediate(callback) }
this.discovery.stop = (callback) => { setImmediate(callback) }

this.listenersRefs = {}
this._peerDiscovered = this._peerDiscovered.bind(this)
}
Expand Down

0 comments on commit 011ada5

Please sign in to comment.