const { io } = require("socket.io-client");
const botSocket = io("http://localhost:1025");
botSocket.connect();
botSocket.on("connect_failed", function () {
console.log("Sorry, there seems to be an issue with the connection!");
});
botSocket.onAny((data) => {
console.log(data, "bot connect");
});
botSocket.on("connection", (data) => {
console.log(data, "bot conenct");
});
Here is my code, but when I run it, nothing is logged ever, what am I doing wrong?