enterWaitingRoom
The way into a high-demand session's waiting room.
A session whose activity is highDemand sells through a waiting room: each buyer waits their turn and is let through at a rate the sale can absorb, with an admission token that checkout, holdSpots and holdSessionPlaces require. Call this when the buyer starts to book, then open a WebSocket to url (it carries a short-lived token, so call this again to reconnect) and speak the room's @quilted/threads protocol: call join({ticket}) to take a place (or keep one after a reconnect), and answer the room's update(status) calls as the line moves. The status is waiting (with ticket, position, estimatedWaitSeconds) or admitted (with admissionToken and admissionExpiresAt). An open socket keeps the place; a buyer gone for a while loses it.
url is null for a session that sells without a waiting room: check out as usual. A signed-in buyer keeps one place across devices.
Arguments
sessionEntityRef!Returns
See EnterWaitingRoomResult for the full shape.
Try it
Example
mutation EnterWaitingRoom($session: EntityRef!) {
enterWaitingRoom(session: $session) {
__typename
}
}
https://go.sessions.website/api/graphql