Skip to content
Docs
Reference

Type Alias: LiveEvent

Type Alias: LiveEvent in @ticketlayer/live.

@ticketlayer/live


@ticketlayer/live / index / LiveEvent

type LiveEvent = 
  | "session:changed"
  | "cart:updated"
  | "cart:quoting"
  | "cart:quoted"
  | "auth:changed"
  | "tenders:changed"
  | "tenders:settled"
  | "checkout:completed"
  | "error"
  | "seats:status"
  | "seats:unavailable"
  | "seats:gap"
  | "seats:plan-changed"
  | "seats:limit"
  | "seats:access"
  | "ui:event-modal-requested"
  | "ui:checkout-requested"
  | "ui:cart-requested"
  | "ui:login-requested"
  | "ui:modal-close-requested"
  | "ui:section-focus"
  | "ui:section-focus-requested"
  | "ui:seat-focus"
  | "ui:seatmap-view"
  | "ui:recommendation-select"
  | "ui:seats-highlight"
  | "ui:seat-pin-requested"
  | "ui:party-change"
  | "ui:seat-preferences-change";

Defined in: state/emitter.ts:11

Bidirectional event bus shared by the SDK, Elements, and the host app.

Two directions:

  • STATE events the SDK pushes OUT so Elements re-render (cart:updated, …).
  • UI INTENTS Elements/host push IN for someone else to act on (ui:checkout-requested, ui:event-modal-requested, …) - e.g. a tl-buy-tickets-button emits ui:event-modal-requested and HBO opens the modal. The SDK itself doesn't render UI; it just relays.