Regarding WebSockets your textio.on(“connection”, (socket) => { your textconsole.log(“Connected to socket.io”);