title: Does PM2 Cluster Mode handle WebSockets in one single process?
body: <p>I'm building a simple chat application using Node.js and Socket.io. Started using PM2 to scale my application on different instances (currently for testing purposes I'm using 4 instances on a Windows OS).</p>
  
  <p>During testing, I've noticed that all the websocket traffic is going thru the same instance ID, but if I force a WebSocket connection to another instance then all the messages I send to that one can't be viewed in other existing WebSocket connections, as they run on different instances.</p>
  
  <p>Let's say I want to broadcast a chat message to all connected users, using PM2 Cluster Mode. How can I achieve that?</p>
  
  <p>I have read this issue <a href="https://github.com/Unitech/pm2/issues/1510" rel="nofollow noreferrer">https://github.com/Unitech/pm2/issues/1510</a> pointing that as long I'm using only websocket transport in Socket.io there shouldn't be any problems. How does this work? Does PM2 handle all WebSocket connections internally to always point to the same process?</p>