fix socketIO endpoint