diff --git a/src/main.ts b/src/main.ts index 128a7cd..300d8c5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,10 +11,10 @@ const mixer: Mixer = new Mixer(); const server = createServer(mixer.http_handler); // 2. bind 404 error -server.on('error', (err: Error, sock: Socket) => { +server.on('clientError', (err: Error, sock: Socket) => { sock.end('HTTP/1.1 400 Bad Request\r\n\r\n'); }); // 3. listen on given port server.listen(8000); -console.log('+ Listen :8080') \ No newline at end of file +console.log('+ listen 8080') \ No newline at end of file