How to add mesh to socket with BP?

Well if you added the swordBP as a child component you could just attach it to the character mesh in the characterBP and then set the socket from the details panel and for go the attach to node all together:

128252-attachtosocket.png