WebSockets and the future!

That is completely the wrong approach for this kind of thing I feel.

Sure use a web browser to auth and control.
But dump the actual bot off to a service which can receive the relevant auth.

That said there are plenty of libraries out there to connect to IRC under a pure HTTP environment. Not how I’d do it tho…