The endpoint name on the message has no direction. If you've just received the message, it will tell you which endpoint you've received it on. If you're sending the message, you set it to specify which endpoint you're sending to.