Question for anyone who can help:
The StreamElements websockets provides a different data structure for live events vs testing events, but I can't find any documentation for the live events (which makes it impossible to test without using literal live subscriptions/bits/tips).
The data structure supplied at https://github.com/StreamElements/widgets/blob/master/CustomCode.md#on-event for testing events:
{ listener: 'follower-latest',
event:
{ type: 'follower',
name: 'Ardelia',
amount: 23,
count: 49,
items: [ [Object], [Object], [Object], [Object], [Object] ],
tier: '1000',
isTest: true } }
The data structure, that I can't find documentation for, for live events:
{ _id: '5d13e558dc46db79b76f6f68',
channel: '5928b89431f4ec2a365dba77',
type: 'follow',
provider: 'twitch',
data:
{ username: 'ardelia',
avatar:
'https://static-cdn.jtvnw.net/jtv_user_pictures/test-id-profile_image-300x300.jpg',
items: [] },
createdAt: '2019-06-26T21:36:24.865Z',
updatedAt: '2019-06-26T21:36:24.865Z' }
Is there documentation that covers these somewhere since they are different?