server: rm check for http/udp option

my use-case brings its own http server, i just use onHttpRequest()
This commit is contained in:
Astro 2015-02-06 18:16:47 +01:00
parent 424bc3cd11
commit 138bdb8573

View File

@ -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