ah I think I see what you are talking about:
on *:sockopen:twitch.*
on *:sockread:twitch.*
on *:sockclose:twitch.*

Although I am not sure what to do about sockclose since you have it inside the "twitch.auth.request" which has nothing to do with youtube