From 6eb09d88d385bc5199cf7a4aac1b305ac1f7f76c Mon Sep 17 00:00:00 2001 From: Demo User Date: Sun, 27 Mar 2022 20:24:22 +0000 Subject: [PATCH] base of chat in a HTML file --- index.html | 23 +++++++++++++++++++++++ index.js | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..ab33e5d --- /dev/null +++ b/index.html @@ -0,0 +1,23 @@ + + + + Socket.IO chat + + + + +
+ +
+ diff --git a/index.js b/index.js index f15a919..3ea66dd 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const http = require("http"); const server = http.createServer(app); app.get('/', (req, res) => { - res.send('

Hello new user!!

'); + res.sendFile(__dirname + '/index.html'); }); server.listen(3030, () => {