Realtime clustering engine for SocketCluster