Hey guys, I’m trying to get something to work to load & display chat similarly to how it does on web browsers on Twitch.tv. But it requires a username and auth token. On the website you don’t need to be logged in. What am i doing wrong?!
Here is my code. It doesn’t let me connect without login credentials however…
var ws = new WebSocket('ws://192.16.64.145:80');
var nick = ‘’; //all lowercase
var auth = ‘’; //include oauth:xxxx
var channel = ‘lirik’;
Set NICK to “justinfan” followed by any numbers (e.g. justinfan123) and it will be treated as an anonymous read-only login that works with any PASS (you can even leave PASS out).
As a side-note, it’s best to use wss://irc.chat.twitch.tv/ for the web socket.