[v4] Strapi and socket.io

I had the same problem, but figured it out by looking at this: strapio/index.js at 2a1b465c06a25c3ad5afb82d08185dc65f4b6b4b · larsonnn/strapio · GitHub

Add .httpServer to the end of strapi.server

const io = require('socket.io')(strapi.server.httpServer);
1 Like