From 138bdb8573688aa9ca7e3369e3e5fe0b79f9ec97 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 6 Feb 2015 18:16:47 +0100 Subject: [PATCH] server: rm check for http/udp option my use-case brings its own http server, i just use onHttpRequest() --- server.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/server.js b/server.js index 8891e24..1d31427 100644 --- a/server.js +++ b/server.js @@ -36,9 +36,6 @@ function Server (opts) { EventEmitter.call(self) opts = opts || {} - if (opts.http === false && opts.udp === false) - throw new Error('must start at least one type of server (http or udp)') - self._intervalMs = opts.interval ? opts.interval : 10 * 60 * 1000 // 10 min