socketServer handles the 3 url path forms