I made a pull request to actually let you know what the error is when this pops up, I did some research and it looks like this happens whenever the room is not accessible or doesn't exist for whatever reason. @wwwg I'd love if you'd merge my pull request that I've linked below :)
Code that will reproduce
(Basically every <Client>.join event with a room that is not accessible)
var Kahoot = require("kahoot.js");
var k = new Kahoot;
console.log("Joining kahoot...");
k.join(000000, "kahoot.js").then(() => {
console.log("Joined Quiz");
});
Error output
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
I made a pull request to actually let you know what the error is when this pops up, I did some research and it looks like this happens whenever the room is not accessible or doesn't exist for whatever reason. @wwwg I'd love if you'd merge my pull request that I've linked below :)
Code that will reproduce (Basically every
<Client>.join
event with a room that is not accessible)Error output
My pull request that will output an error letting you know what is wrong. https://github.com/wwwg/kahoot.js/pull/10