Added web socket support in auto transport mode

Recreated the pull request exactly as it was done by Stas Stelle @aiQon (all credits go to him) and added the missing component reference.