Merge pull request #60 from feross/no-force-http-udp

server: rm check for http/udp option
This commit is contained in:
Feross Aboukhadijeh 2015-02-06 15:56:11 -08:00
commit 86bcbfaab2

View File

@ -36,9 +36,6 @@ function Server (opts) {
EventEmitter.call(self) EventEmitter.call(self)
opts = opts || {} 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 self._intervalMs = opts.interval
? opts.interval ? opts.interval
: 10 * 60 * 1000 // 10 min : 10 * 60 * 1000 // 10 min