mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-05-10 21:37:32 +00:00
feat: Pass options to websocket server (#66)
This commit is contained in:
parent
e7ab32f0be
commit
709989acc9
@ -10,7 +10,7 @@ function noop () {}
|
||||
const createServer = require('pull-ws/server') || noop
|
||||
|
||||
module.exports = (options, handler) => {
|
||||
const listener = createServer((socket) => {
|
||||
const listener = createServer(options, (socket) => {
|
||||
socket.getObservedAddrs = (callback) => {
|
||||
// TODO research if we can reuse the address in anyway
|
||||
return callback(null, [])
|
||||
|
Loading…
x
Reference in New Issue
Block a user