We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b88a7a commit 834bf1dCopy full SHA for 834bf1d
server.js
@@ -89,6 +89,10 @@ function Server (opts) {
89
if (opts.ws === true) {
90
if (!self.http) {
91
self.http = http.createServer()
92
+ self.http.on('request', function (req, res) {
93
+ res.statusCode = 404
94
+ res.end('404 Not Found')
95
+ })
96
self.http.on('error', function (err) { self._onError(err) })
97
self.http.on('listening', onListening)
98
}
0 commit comments