Improve AZSocketIOTransportDelegate

Signed-off-by: Luca Bernardi <luka.bernardi@gmail.com>
Small refactoring in AZXHRTransport

Signed-off-by: Luca Bernardi <luka.bernardi@gmail.com>