Here’s how you can solder electrical wires:
Strip the wires and add heat shrink tubing to it
Join the wires and position them in a way they are elevated on the surface
Add a small amount of rosin flux to cover the copper
Solder the wire
Shrink the tubing