Type: Object
Subscription
Realtime updates over one WebSocket: connect to wss://events.jiltv.app/v1/events/graphql with the graphql-transport-ws protocol (e.g. the graphql-ws npm package). Chat clients that want the leanest wire format can use wss://events.jiltv.app/v1/events/ws instead, which carries the same events.
Fields
events RealtimeEvent! Follows any number of topics at once:
- twitch:<channel id> (also kick:, youtube:): emote and set changes, presence - cosmetics: what chatters wear, for every channel - me: your own events, such as notifications (signed in)
Each topic first sends a subscribed event (or resync: events after since are gone, reload the topic's state), then the events after since, then live events. Keep the newest id per topic and pass it as since when you reconnect to miss nothing. The subscription ends when the client falls too far behind or the server restarts: reconnect and resume.
topic String! The topic as you named it.
id String The event's position in its topic; null for events that can't be replayed.
type String! subscribed, resync, or what happened, e.g. set.emote_added, presence.joined, user.cosmetics.
data JSON!