Search code examples
node.jswebsocketsocket.ioadapterpm2

integrate pm2 with socket io in nodeJs


can't use adapter with socket io in production although it's running in development [1]: https://i.sstatic.net/eiyLf.png [2]: https://i.sstatic.net/R3LCj.png [3]: https://i.sstatic.net/Ncrog.png


Solution

  • Take care about version campatibility between your server and client .

    https://socket.io/docs/v4/client-installation/