How to ctx.state with socket io

System Information
  • Strapi Version: 3.6.6
  • Operating System: Windows 10
  • Database: sqlite
  • Node Version: 12.2.1
  • NPM Version: 6.14.12
  • Yarn Version: 1.22.10

socket.io has no access to ctx.
I need a way to access ctx.state.
Am using socket.io v4

Thanks

I would suggest you check out: strapi-plugin-socket-io - npm

And likewise the forum thread for it by the maintainer: StrapIO the ez to use socket.io configurator