feat: Pass options to websocket server (#66)

This commit is contained in:
Maciej Krüger 2018-04-05 18:21:02 +02:00 committed by David Dias
parent e7ab32f0be
commit 709989acc9

View File

@ -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, [])