I'm having trouble figuring out the logic behind having multiple sockets connected to the same server trying to communicate with one another. I'll try and describe my situation with some psudeo code
clientsocket1 connects
clientsocket2 connects
Client one sends an emit
clientsocket1.emits('ConversionDone')
Node handles the emit
serverSocket.on(ConversionDone, function(data){
//Store Convert files into an array
serverSocket.emit('Files')//this is intended to notify clientsocket2
}
how in the following situation would I be able to notify clientsocket2 that ConversionDone has finished if clientsocket1 was the socket that initated the emit?