Can't connect on server #74
Replies: 4 comments 2 replies
-
I tried adding socketio to the bootstrap function without the plugin to see what happens, but the connection error also occurred. bootstrap({ strapi }) {
const io = new Server((strapi as LoadedStrapi).server.httpServer, {
cors: {
origin: "*",
methods: ["GET", "POST"]
}
});
io.on("connection", (socket) => {
console.log("User connected");
}
} |
Beta Was this translation helpful? Give feedback.
-
Versions 4.15.0 and 4.15.1 are deprecated version due to them having various issues. I would upgrade to the latest version (v4.15.5 ) and see if the issue still occurs. |
Beta Was this translation helpful? Give feedback.
-
Hi! I tried updating the version but that didn't solve it, the problem kept happening. I also tried to create a new project from strapi 0 and the installation didn't work. I'll leave the link with some videos showing my tests. https://drive.google.com/file/d/1AKCMV50tteT9r6U4T1HxMOfm5PpApjKR/view?usp=sharing |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a strapi 4.15.0 and installed the plugin. Set the plugins.ts to
And I have a client for testing that is the same of the example on documentation. But I simply can't connect.

The configuration seems to be ok
But I all get is:
trying to connect http://localhost:4000
connect_error due to xhr poll error
connect_error due to xhr poll error
trying to connect http://localhost:4000
connect_error due to websocket error
connect_error due to websocket error
Beta Was this translation helpful? Give feedback.
All reactions