Problem description:
Not able to GET / on my socketio project
Expected behavior:
Display blank webpage
Actual behavior:
Cannot GET /
Steps to reproduce:
const express = require("express");
const socketio = require("socket.io");
const http = require("http");
const port = 3000;
const app = express();
const server = http.createServer(app);
const io = new socketio.Server(server);
app.use(express.static("public"));
server.listen(port, function() {
console.log("App listening on port " + port);
});
Bug appears at this link:
https://replit.com/@d4s-over-dt4/SocketIO-Tutorial#index.js
Browser/OS/Device:
“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0”
(For @imcute-aaaa :I am listening to your advice,but I think this is a bug,and I can’t have 2 tags for the same topic.)