Refactoring, different channel attributes for socket auth and basic auth