Userid must be unique
connection.onUserIdAlreadyTaken = function(useridAlreadyTaken, yourNewUserId) { console.warn('Userid already taken.', useridAlreadyTaken, 'Your new userid:', yourNewUserId); connection.userid = connection.token(); connection.join(connection.sessionid); };