Skip to content

Commit 803c665

Browse files
authored
decouple net to allow websockets and more (#12)
1 parent 05891f4 commit 803c665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = class Hyperspace extends Nanoresource {
5757
this.corestore = new Corestore(corestoreOpts.storage, corestoreOpts)
5858
startTrieExtension(this.corestore)
5959

60-
this.server = HRPC.createServer(this._onConnection.bind(this))
60+
this.server = HRPC.createServer(opts.server, this._onConnection.bind(this))
6161
this.db = new HyperspaceDb(this.corestore)
6262
this.networker = null
6363

0 commit comments

Comments
 (0)