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 2c91d89 commit 66fcf94Copy full SHA for 66fcf94
examples/socket.io-chat-app/index.js
@@ -1,11 +1,10 @@
1
const micro = require('micro'),
2
fs = require('fs');
3
4
-const server = micro(async (req, res) => {
5
- const html = fs.readFileSync(__dirname + '/index.html');
6
-
7
- console.log("Serving index.html");
+const html = fs.readFileSync(__dirname + '/index.html')
8
+const server = micro(async (req, res) => {
+ console.log('Serving index.html');
9
res.end(html);
10
});
11
@@ -17,4 +16,4 @@ require('./websocket-server.js')(io);
17
16
server.listen(4000);
18
19
// Micro expects a function to be exported
20
-module.exports = () => console.log("YOLO");
+module.exports = () => console.log('YOLO');
0 commit comments