As it's being currently worked on bitcoindevkit/rust-electrum-client#194, we probably should need to have authorization support here. I didn't delve into the code yet to check if it's really needed here or the sans-io architecture already solves that.