Alright, thanks for that.
However, I’ve just tried sending some extension whisper messages, but seem to be getting nowhere with it.
From what I’ve read up, the topic should be “whisper-SomeOpaqueUserId”, which I can send and receive a 204 code back without problem. On the viewer side of things, in the onAuthorized event, I’m doing:
twitch.onAuthorized(function(auth)
{
twitch.listen(`whisper-${auth.userId}`, function(target, contentType, content)
{
twitch.rig.log('PubSub whisper received');
twitch.rig.log(content);
});
});
But I’m not getting anything hitting that listen for the whisper.
I did notice that inspecting the JWT, it didn’t list a whisper listen perm though:
{"exp":9999999999,"opaque_user_id":"xxx","role":"viewer","pubsub_perms": {"listen":["broadcast","global"]},"channel_id":"xxx","user_id":"xxx","iat":999999999}
Should the whisper be listed here as a possible perm in the JWT? If it should be, have you got any ideas why it might not be listed here?