Made changes to AutoTransport to remove web sockets from transports if not supported

#1884
Made small code style changes

#1884