Polling
Outbound events fetched by a bridge that cannot receive them.
Fetch outbound events (polling bridges)
For a bridge with no public address. Connect the custom platform
without a target URL and Hijinks holds each outbound event for
24 hours instead of POSTing it. Fetch them here, oldest first, and pass
next back as after.
- Without
after, the answer is no events and the newest cursor: start from now. - When
hasMoreis true, poll again at once, otherwise every few seconds. - Sign the query string exactly as sent (the empty string when there is
none) in place of a body, and verify
Hijinks-Signatureon the response over its exact bytes. - Handle each event as if it had been pushed, and dedupe on
id.
Stale events and superseded updates are left out, so apply a page as it comes. Setup, downtime and what to do when your chat refuses a message: Polling.
path Parameters
workspaceIdThe workspace id shown in the dashboard next to the inbound URL.
The Hijinks workspace, as shown in the dashboard.
query Parameters
after^\d{1,18}$The next cursor of the previous poll, stored as given. Use 0 for
the oldest event held. Omitted, the answer has no events and the
newest cursor (start from now).
A poll position. Opaque. Pass it back as after exactly as received.
limitMost events to answer.
Headers
Hijinks-Signature^t=\d+(,v1=[0-9a-fA-… · requiredt=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>.
Several v1= entries are allowed. Any one matching is enough.
Fetch outbound events (polling bridges) › Responses
A page of held events, oldest first.
Oldest first, each exactly the envelope a push would have carried.
next^\d{1,18}$ · requiredPass as after on the next poll. The after you sent when no
event was new. Without after, the newest cursor ("0" when
the workspace has never held an event).
hasMoreMore events wait past this page. Poll again at once.
gapEvents after your after expired (24 hours) before you fetched
them: the bridge missed something. Tell the channel if you like
("Hijinks was unreachable and some messages were missed") and carry
on from next. Always false without after.