The upgrade stuff only applies if you try to connect to a http server first then the server goes “you need to upgrade from http(s) to ws(s) instead”, I’ve not checked as I don’t care, but Twitch PubSub/IRC are both “straight socket servers”.
The connection strings for Chat and IRC are both “ws(s)” and you can’t really upgrade from “ws(s)” to something else.