Exact format for WebSocket request header?

yep, I know I’m over-complicating the entire process here. I could just grab a WebSocket library and be done, or I could use tmi.js and be done(believe me, I referenced it a LOT during my decoding of the IRC messages with my first run through of just using irc). I’ve done all that and as you can see I have no problem accessing it using any of those methods or even just the net module as I did above. The point is not necessarily to understand how to use someone else’s answer to the problem, but rather for me to deepen my understanding the of the underlying layers to speak with it directly.

I know it’s difficult, I know it’s over-complicated and I know it’s a royal pain. That’s also entirely the point of me trying to do it this way! =) I’ve written lots of bots with the above methods. I’m not as interested in that anymore =) That’s why I was hoping someone might’ve had access to a quick copy/paste of a good header request to the address that twitch is happy with right off the bat, in order to save my fooling around with the minor nuances of the specific request(one thing off can easily throw a 400 Bad Request)