According to the comment in logSuccess the hello-world sample should use the broadcast functionality of PubSub to trigger the actual color change.
|
function logSuccess(hex, status) { |
|
// we could also use the output to update the block synchronously here, |
|
// but we want all views to get the same broadcast response at the same time. |
|
twitch.rig.log('EBS request returned '+hex+' ('+status+')'); |
|
} |
But due to createRequest pointing to updateBlock instead of logSuccess the current implementation effectively does not need broadcasts when tested with a single user.
|
function createRequest(type, method) { |
|
|
|
return { |
|
type: type, |
|
url: 'https://localhost:8081/color/' + method, |
|
success: updateBlock, |
|
error: logError |
|
} |
|
} |
According to the comment in logSuccess the hello-world sample should use the broadcast functionality of PubSub to trigger the actual color change.
extensions-hello-world/public/viewer.js
Lines 56 to 60 in b5eb29a
But due to createRequest pointing to updateBlock instead of logSuccess the current implementation effectively does not need broadcasts when tested with a single user.
extensions-hello-world/public/viewer.js
Lines 14 to 22 in b5eb29a