[{"data":1,"prerenderedAt":547},["ShallowReactive",2],{"sdk-docs-navigation":3,"sdk-docs-page:\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Frealtime":112},[4],{"path":5,"title":6,"children":7,"stem":111,"page":16},"\u002Fgscdump-sdk","gscdump SDK",[8,27],{"path":9,"title":10,"children":11,"stem":25,"page":26},"\u002Fgscdump-sdk\u002Fapi","Api",[12,17,21],{"path":13,"title":14,"stem":15,"page":16},"\u002Fgscdump-sdk\u002Fapi\u002Fdirect-client","Direct client exports","api\u002F1.direct-client",true,{"path":18,"title":19,"stem":20,"page":16},"\u002Fgscdump-sdk\u002Fapi\u002Fhosted-http","Hosted HTTP","api\u002F2.hosted-http",{"path":22,"title":23,"stem":24,"page":16},"\u002Fgscdump-sdk\u002Fapi\u002Frealtime","Realtime","api\u002F3.realtime","gscdump-sdk\u002Fapi",false,{"path":28,"title":29,"children":30,"stem":110,"page":26},"\u002Fgscdump-sdk\u002Fguides","Guides",[31,48,73,97],{"path":32,"title":33,"children":34,"stem":47,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fstart","Start",[35,39,43],{"path":36,"title":37,"stem":38,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fstart\u002Fchoose-access","Choose access","guides\u002F1.start\u002F1.choose-access",{"path":40,"title":41,"stem":42,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fstart\u002Fhosted-first-result","Hosted first result","guides\u002F1.start\u002F2.hosted-first-result",{"path":44,"title":45,"stem":46,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fstart\u002Fdirect-first-result","Direct first result","guides\u002F1.start\u002F3.direct-first-result","guides\u002F1.start\u002Findex",{"path":49,"title":50,"children":51,"stem":72,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data","Read data",[52,56,60,64,68],{"path":53,"title":54,"stem":55,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fdirect-search-analytics","Direct Search Analytics","guides\u002F2.read-data\u002F1.direct-search-analytics",{"path":57,"title":58,"stem":59,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fhosted-analytics","Hosted analytics","guides\u002F2.read-data\u002F2.hosted-analytics",{"path":61,"title":62,"stem":63,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fhosted-indexing","Hosted indexing","guides\u002F2.read-data\u002F3.hosted-indexing",{"path":65,"title":66,"stem":67,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fhosted-sitemaps","Hosted sitemaps","guides\u002F2.read-data\u002F4.hosted-sitemaps",{"path":69,"title":70,"stem":71,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fread-data\u002Fdirect-bing","Direct Bing","guides\u002F2.read-data\u002F5.direct-bing","guides\u002F2.read-data\u002Findex",{"path":74,"title":75,"children":76,"stem":96,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations","Build integrations",[77,81,85,89,92],{"path":78,"title":79,"stem":80,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Fnuxt","Nuxt","guides\u002F3.build-integrations\u002F1.nuxt",{"path":82,"title":83,"stem":84,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Fnextjs","Next.js","guides\u002F3.build-integrations\u002F2.nextjs",{"path":86,"title":87,"stem":88,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Fhono-express","Hono \u002F Express","guides\u002F3.build-integrations\u002F3.hono-express",{"path":90,"title":23,"stem":91,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Frealtime","guides\u002F3.build-integrations\u002F4.realtime",{"path":93,"title":94,"stem":95,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Fbuild-integrations\u002Fwebhooks","Webhooks","guides\u002F3.build-integrations\u002F5.webhooks","guides\u002F3.build-integrations\u002Findex",{"path":98,"title":99,"children":100,"stem":109,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Foperate","Operate",[101,105],{"path":102,"title":103,"stem":104,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Foperate\u002Fkeys-and-scopes","Keys and scopes","guides\u002F4.operate\u002F1.keys-and-scopes",{"path":106,"title":107,"stem":108,"page":16},"\u002Fgscdump-sdk\u002Fguides\u002Foperate\u002Ferrors-and-retry","Errors and retry","guides\u002F4.operate\u002F2.errors-and-retry","guides\u002F4.operate\u002Findex","gscdump-sdk\u002Fguides","index",{"title":113,"description":114,"body":115,"id":541,"path":90,"stem":91,"extension":542,"navigation":543,"seo":544,"_source":545,"sitemap":546},"Show new hosted data in the browser","Use a short-lived ticket, apply events before ACK, and resync through HTTP.",{"toc":116,"nodes":139,"frontmatter":530,"meta":532},{"links":117,"title":137,"searchDepth":138,"depth":138},[118,122,125,128,131,134],{"id":119,"text":120,"depth":121},"before-you-start","Before you start",2,{"id":123,"text":124,"depth":121},"issue-a-browser-ticket-on-the-server","Issue a browser ticket on the server",{"id":126,"text":127,"depth":121},"connect-the-browser","Connect the browser",{"id":129,"text":130,"depth":121},"save-the-cursor","Save the cursor",{"id":132,"text":133,"depth":121},"resync-after-a-gap","Resync after a gap",{"id":135,"text":136,"depth":121},"check-reconnect-behavior","Check reconnect behavior","",3,[140,144,148,196,199,207,209,216,219,222,224,487,495,497,511,513,520,522],[141,142,113],"h1",{"id":143},"show-new-hosted-data-in-the-browser",[145,146,147],"p",{},"Realtime tells your app that hosted data changed. Read the current data through HTTP after a change.",[149,150,155],"pre",{"language":151,"class":152,"tabindex":153,"svg":154},"mermaid","rangi shiki shj-lang-mermaid",0,"\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" viewBox=\"0 0 426.561 430\" width=\"426.561\" height=\"430\" style=\"--bg:var(--ui-bg-muted);--fg:var(--ui-text-highlighted);--accent:var(--ui-link)\">\n\u003Cstyle>\n  @import url('https:\u002F\u002Ffonts.googleapis.com\u002Fcss2?family=Inter:wght@400;500;600;700&amp;display=swap');\n  text { font-family: 'Inter', system-ui, sans-serif; }\n  svg {\n    \u002F* Derived from --bg and --fg (overridable via --line, --accent, etc.) *\u002F\n    --_text:          var(--fg);\n    --_text-sec:      var(--muted, color-mix(in srgb, var(--fg) 60%, var(--bg)));\n    --_text-muted:    var(--muted, color-mix(in srgb, var(--fg) 40%, var(--bg)));\n    --_text-faint:    color-mix(in srgb, var(--fg) 25%, var(--bg));\n    --_line:          var(--line, color-mix(in srgb, var(--fg) 50%, var(--bg)));\n    --_arrow:         var(--accent, color-mix(in srgb, var(--fg) 85%, var(--bg)));\n    --_node-fill:     var(--surface, color-mix(in srgb, var(--fg) 3%, var(--bg)));\n    --_node-stroke:   var(--border, color-mix(in srgb, var(--fg) 20%, var(--bg)));\n    --_group-fill:    var(--bg);\n    --_group-hdr:     color-mix(in srgb, var(--fg) 5%, var(--bg));\n    --_inner-stroke:  color-mix(in srgb, var(--fg) 12%, var(--bg));\n    --_key-badge:     color-mix(in srgb, var(--fg) 10%, var(--bg));\n  }\n\u003C\u002Fstyle>\n\u003Cdefs>\n  \u003Cmarker id=\"seq-arrow\" markerWidth=\"8\" markerHeight=\"5\" refX=\"8\" refY=\"2.5\" orient=\"auto-start-reverse\">\n    \u003Cpolygon points=\"0 0, 8 2.5, 0 5\" fill=\"var(--_arrow)\" \u002F>\n  \u003C\u002Fmarker>\n  \u003Cmarker id=\"seq-arrow-open\" markerWidth=\"8\" markerHeight=\"5\" refX=\"8\" refY=\"2.5\" orient=\"auto-start-reverse\">\n    \u003Cpolyline points=\"0 0, 8 2.5, 0 5\" fill=\"none\" stroke=\"var(--_arrow)\" stroke-width=\"1\" \u002F>\n  \u003C\u002Fmarker>\n\u003C\u002Fdefs>\n\u003Cline class=\"lifeline\" data-actor=\"UI\" x1=\"72.91\" y1=\"70\" x2=\"72.91\" y2=\"400\" stroke=\"var(--_line)\" stroke-width=\"0.75\" stroke-dasharray=\"6 4\" \u002F>\n\u003Cline class=\"lifeline\" data-actor=\"Server\" x1=\"212.91\" y1=\"70\" x2=\"212.91\" y2=\"400\" stroke=\"var(--_line)\" stroke-width=\"0.75\" stroke-dasharray=\"6 4\" \u002F>\n\u003Cline class=\"lifeline\" data-actor=\"API\" x1=\"352.90999999999997\" y1=\"70\" x2=\"352.90999999999997\" y2=\"400\" stroke=\"var(--_line)\" stroke-width=\"0.75\" stroke-dasharray=\"6 4\" \u002F>\n\u003Cg class=\"message\" data-from=\"UI\" data-to=\"Server\" data-label=\"Request ticket\" data-line-style=\"solid\" data-arrow-head=\"filled\" data-self=\"false\">\n  \u003Cline x1=\"72.91\" y1=\"90\" x2=\"212.91\" y2=\"90\" stroke=\"var(--_line)\" stroke-width=\"1\" marker-end=\"url(#seq-arrow)\" \u002F>\n  \u003Ctext x=\"142.91\" y=\"80\" font-size=\"11\" text-anchor=\"middle\" font-weight=\"400\" fill=\"var(--_text-muted)\" dy=\"3.8499999999999996\">Request ticket\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"message\" data-from=\"Server\" data-to=\"API\" data-label=\"createRealtimeTicket\" data-line-style=\"solid\" data-arrow-head=\"filled\" data-self=\"false\">\n  \u003Cline x1=\"212.91\" y1=\"130\" x2=\"352.90999999999997\" y2=\"130\" stroke=\"var(--_line)\" stroke-width=\"1\" marker-end=\"url(#seq-arrow)\" \u002F>\n  \u003Ctext x=\"282.90999999999997\" y=\"120\" font-size=\"11\" text-anchor=\"middle\" font-weight=\"400\" fill=\"var(--_text-muted)\" dy=\"3.8499999999999996\">createRealtimeTicket\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"message\" data-from=\"API\" data-to=\"UI\" data-label=\"Single-use ticket\" data-line-style=\"dashed\" data-arrow-head=\"filled\" data-self=\"false\">\n  \u003Cline x1=\"352.90999999999997\" y1=\"170\" x2=\"72.91\" y2=\"170\" stroke=\"var(--_line)\" stroke-width=\"1\" stroke-dasharray=\"6 4\" marker-end=\"url(#seq-arrow)\" \u002F>\n  \u003Ctext x=\"212.90999999999997\" y=\"160\" font-size=\"11\" text-anchor=\"middle\" font-weight=\"400\" fill=\"var(--_text-muted)\" dy=\"3.8499999999999996\">Single-use ticket\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"message\" data-from=\"API\" data-to=\"UI\" data-label=\"Durable event\" data-line-style=\"dashed\" data-arrow-head=\"filled\" data-self=\"false\">\n  \u003Cline x1=\"352.90999999999997\" y1=\"210\" x2=\"72.91\" y2=\"210\" stroke=\"var(--_line)\" stroke-width=\"1\" stroke-dasharray=\"6 4\" marker-end=\"url(#seq-arrow)\" \u002F>\n  \u003Ctext x=\"212.90999999999997\" y=\"200\" font-size=\"11\" text-anchor=\"middle\" font-weight=\"400\" fill=\"var(--_text-muted)\" dy=\"3.8499999999999996\">Durable event\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"message\" data-from=\"UI\" data-to=\"UI\" data-label=\"Apply cache change\" data-line-style=\"solid\" data-arrow-head=\"filled\" data-self=\"true\">\n  \u003Cpolyline points=\"72.91,250 102.91,250 102.91,270 72.91,270\" fill=\"none\" stroke=\"var(--_line)\" stroke-width=\"1\" marker-end=\"url(#seq-arrow)\" \u002F>\n  \u003Ctext x=\"110.91\" y=\"260\" font-size=\"11\" text-anchor=\"start\" font-weight=\"400\" fill=\"var(--_text-muted)\" dy=\"3.8499999999999996\">Apply cache change\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"message\" data-from=\"UI\" data-to=\"API\" data-label=\"ACK and saved cursor\" data-line-style=\"solid\" data-arrow-head=\"filled\" data-self=\"false\">\n  \u003Cline x1=\"72.91\" y1=\"320\" x2=\"352.90999999999997\" y2=\"320\" stroke=\"var(--_line)\" stroke-width=\"1\" marker-end=\"url(#seq-arrow)\" \u002F>\n  \u003Ctext x=\"212.90999999999997\" y=\"310\" font-size=\"11\" text-anchor=\"middle\" font-weight=\"400\" fill=\"var(--_text-muted)\" dy=\"3.8499999999999996\">ACK and saved cursor\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"message\" data-from=\"UI\" data-to=\"Server\" data-label=\"HTTP resync after a gap\" data-line-style=\"solid\" data-arrow-head=\"filled\" data-self=\"false\">\n  \u003Cline x1=\"72.91\" y1=\"360\" x2=\"212.91\" y2=\"360\" stroke=\"var(--_line)\" stroke-width=\"1\" marker-end=\"url(#seq-arrow)\" \u002F>\n  \u003Ctext x=\"142.91\" y=\"350\" font-size=\"11\" text-anchor=\"middle\" font-weight=\"400\" fill=\"var(--_text-muted)\" dy=\"3.8499999999999996\">HTTP resync after a gap\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"actor\" data-id=\"UI\" data-label=\"Browser\" data-type=\"participant\">\n  \u003Crect x=\"30\" y=\"30\" width=\"85.82\" height=\"40\" rx=\"4\" ry=\"4\" fill=\"var(--_node-fill)\" stroke=\"var(--_node-stroke)\" stroke-width=\"1\" \u002F>\n  \u003Ctext x=\"72.91\" y=\"50\" font-size=\"13\" text-anchor=\"middle\" font-weight=\"500\" fill=\"var(--_text)\" dy=\"4.55\">Browser\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"actor\" data-id=\"Server\" data-label=\"Your server\" data-type=\"participant\">\n  \u003Crect x=\"159.25549999999998\" y=\"30\" width=\"107.30900000000001\" height=\"40\" rx=\"4\" ry=\"4\" fill=\"var(--_node-fill)\" stroke=\"var(--_node-stroke)\" stroke-width=\"1\" \u002F>\n  \u003Ctext x=\"212.91\" y=\"50\" font-size=\"13\" text-anchor=\"middle\" font-weight=\"500\" fill=\"var(--_text)\" dy=\"4.55\">Your server\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003Cg class=\"actor\" data-id=\"API\" data-label=\"gscdump\" data-type=\"participant\">\n  \u003Crect x=\"309.25899999999996\" y=\"30\" width=\"87.30199999999999\" height=\"40\" rx=\"4\" ry=\"4\" fill=\"var(--_node-fill)\" stroke=\"var(--_node-stroke)\" stroke-width=\"1\" \u002F>\n  \u003Ctext x=\"352.90999999999997\" y=\"50\" font-size=\"13\" text-anchor=\"middle\" font-weight=\"500\" fill=\"var(--_text)\" dy=\"4.55\">gscdump\u003C\u002Ftext>\n\u003C\u002Fg>\n\u003C\u002Fsvg>",[156,157,159,165,166,165,169,165,172,165,175,165,178,165,181,165,184,165,187,165,190,165,193],"code",{"class":158},"language-mermaid",[160,161,164],"span",{"class":162,"style":163},"line","display: inline","sequenceDiagram","\n",[160,167,168],{"class":162,"style":163},"  participant UI as Browser",[160,170,171],{"class":162,"style":163},"  participant Server as Your server",[160,173,174],{"class":162,"style":163},"  participant API as gscdump",[160,176,177],{"class":162,"style":163},"  UI->>Server: Request ticket",[160,179,180],{"class":162,"style":163},"  Server->>API: createRealtimeTicket",[160,182,183],{"class":162,"style":163},"  API-->>UI: Single-use ticket",[160,185,186],{"class":162,"style":163},"  API-->>UI: Durable event",[160,188,189],{"class":162,"style":163},"  UI->>UI: Apply cache change",[160,191,192],{"class":162,"style":163},"  UI->>API: ACK and saved cursor",[160,194,195],{"class":162,"style":163},"  UI->>Server: HTTP resync after a gap",[197,198,120],"h2",{"id":119},[145,200,201,202,206],{},"Use the ",[203,204,205],"a",{"href":40},"hosted first-result guide"," to set up a server client. Keep its API key on the server. Register the browser's exact Origin for ticket creation. A ticket expires and can be used once.",[197,208,124],{"id":123},[145,210,211,212,215],{},"Your same-origin endpoint calls ",[156,213,214],{},"createRealtimeTicket({ body: { origin } })"," with the browser's registered Origin.",[145,217,218],{},"The ticket opens the API key's principal stream. That stream can include several Sites. Give the ticket only to a signed-in user allowed to receive all of them. A check for one Site is insufficient.",[145,220,221],{},"Return the ticket response. Keep the API key on the server.",[197,223,127],{"id":126},[149,225,228],{"language":226,"class":227,"tabindex":153},"ts","rangi shiki shj-lang-ts",[156,229,231,165,256,165,258,165,278,165,297,165,321,165,331,165,337,165,354,165,375,165,390,165,397,165,413,165,427,165,433,165,448,165,459,165,465,165,471,165,473],{"class":230},"language-ts",[160,232,233,238,239,244,245,238,248,238,251],{"class":162,"style":163},[160,234,237],{"class":235,"style":236},"shj-syn-kwd shj-kwd","--shiki-light:#cf222e;--shiki-default:#cf222e;color:#cf222e;--shiki-dark:#ff7b72","import"," ",[160,240,243],{"class":241,"style":242},"shj-syn-bracket shj-bracket","--shiki-light:#57606a;--shiki-default:#57606a;color:#57606a;--shiki-dark:#8b949e","{"," createGscdumpRealtimeV1Client ",[160,246,247],{"class":241,"style":242},"}",[160,249,250],{"class":235,"style":236},"from",[160,252,255],{"class":253,"style":254},"shj-syn-str shj-str","--shiki-light:#0a3069;--shiki-default:#0a3069;color:#0a3069;--shiki-dark:#a5d6ff","'@gscdump\u002Fsdk\u002Fv1'",[160,257],{"class":162,"style":163},[160,259,260,263,264,238,268,273,276],{"class":162,"style":163},[160,261,262],{"class":235,"style":236},"const"," realtime ",[160,265,267],{"class":266,"style":236},"shj-syn-oper shj-oper","=",[160,269,272],{"class":270,"style":271},"shj-syn-func shj-func","--shiki-light:#8250df;--shiki-default:#8250df;color:#8250df;--shiki-dark:#d2a8ff","createGscdumpRealtimeV1Client",[160,274,275],{"class":241,"style":242},"(",[160,277,243],{"class":241,"style":242},[160,279,280,281,238,284,238,287,289,238,292,238,295],{"class":162,"style":163},"  ticketProvider",[160,282,283],{"class":266,"style":236},":",[160,285,286],{"class":235,"style":236},"async",[160,288,275],{"class":241,"style":242},[160,290,291],{"class":241,"style":242},")",[160,293,294],{"class":235,"style":236},"=>",[160,296,243],{"class":241,"style":242},[160,298,299,300,302,303,238,305,238,308,311,313,316,238,319],{"class":162,"style":163},"    ",[160,301,262],{"class":235,"style":236}," response ",[160,304,267],{"class":266,"style":236},[160,306,307],{"class":235,"style":236},"await",[160,309,310],{"class":270,"style":271},"fetch",[160,312,275],{"class":241,"style":242},[160,314,315],{"class":253,"style":254},"'\u002Fapi\u002Fgscdump\u002Frealtime\u002Fv1\u002Fticket'",[160,317,318],{"class":266,"style":236},",",[160,320,243],{"class":241,"style":242},[160,322,323,324,238,326,329],{"class":162,"style":163},"      method",[160,325,283],{"class":266,"style":236},[160,327,328],{"class":253,"style":254},"'POST'",[160,330,318],{"class":266,"style":236},[160,332,299,333,335],{"class":162,"style":163},[160,334,247],{"class":241,"style":242},[160,336,291],{"class":241,"style":242},[160,338,299,339,238,342,344,347,348,351,352],{"class":162,"style":163},[160,340,341],{"class":235,"style":236},"if",[160,343,275],{"class":241,"style":242},[160,345,346],{"class":266,"style":236},"!","response",[160,349,350],{"class":266,"style":236},".","ok",[160,353,291],{"class":241,"style":242},[160,355,356,357,238,360,238,363,368,370,373],{"class":162,"style":163},"      ",[160,358,359],{"class":235,"style":236},"throw",[160,361,362],{"class":235,"style":236},"new",[160,364,367],{"class":365,"style":366},"shj-syn-class shj-class","--shiki-light:#953800;--shiki-default:#953800;color:#953800;--shiki-dark:#ffa657","Error",[160,369,275],{"class":241,"style":242},[160,371,372],{"class":253,"style":254},"'Ticket request failed'",[160,374,291],{"class":241,"style":242},[160,376,299,377,380,381,383,386,388],{"class":162,"style":163},[160,378,379],{"class":235,"style":236},"return"," response",[160,382,350],{"class":266,"style":236},[160,384,385],{"class":270,"style":271},"json",[160,387,275],{"class":241,"style":242},[160,389,291],{"class":241,"style":242},[160,391,392,393,395],{"class":162,"style":163},"  ",[160,394,247],{"class":241,"style":242},[160,396,318],{"class":266,"style":236},[160,398,399,400,238,402,238,404,406,407,238,409,238,411],{"class":162,"style":163},"  applyEvent",[160,401,283],{"class":266,"style":236},[160,403,286],{"class":235,"style":236},[160,405,275],{"class":241,"style":242},"event",[160,408,291],{"class":241,"style":242},[160,410,294],{"class":235,"style":236},[160,412,243],{"class":241,"style":242},[160,414,299,415,238,417,420,406,422,424,425],{"class":162,"style":163},[160,416,307],{"class":235,"style":236},[160,418,419],{"class":270,"style":271},"invalidateAffectedData",[160,421,275],{"class":241,"style":242},[160,423,350],{"class":266,"style":236},"changes",[160,426,291],{"class":241,"style":242},[160,428,392,429,431],{"class":162,"style":163},[160,430,247],{"class":241,"style":242},[160,432,318],{"class":266,"style":236},[160,434,435,436,238,438,238,440,442,238,444,238,446],{"class":162,"style":163},"  resync",[160,437,283],{"class":266,"style":236},[160,439,286],{"class":235,"style":236},[160,441,275],{"class":241,"style":242},[160,443,291],{"class":241,"style":242},[160,445,294],{"class":235,"style":236},[160,447,243],{"class":241,"style":242},[160,449,299,450,238,452,455,457],{"class":162,"style":163},[160,451,307],{"class":235,"style":236},[160,453,454],{"class":270,"style":271},"reloadCurrentData",[160,456,275],{"class":241,"style":242},[160,458,291],{"class":241,"style":242},[160,460,392,461,463],{"class":162,"style":163},[160,462,247],{"class":241,"style":242},[160,464,318],{"class":266,"style":236},[160,466,467,469],{"class":162,"style":163},[160,468,247],{"class":241,"style":242},[160,470,291],{"class":241,"style":242},[160,472],{"class":162,"style":163},[160,474,475,477,478,480,483,485],{"class":162,"style":163},[160,476,307],{"class":235,"style":236}," realtime",[160,479,350],{"class":266,"style":236},[160,481,482],{"class":270,"style":271},"start",[160,484,275],{"class":241,"style":242},[160,486,291],{"class":241,"style":242},[145,488,489,491,492,494],{},[156,490,419],{}," and ",[156,493,454],{}," are application functions. The first must finish before the SDK advances its cursor or sends an ACK. The second must fetch authoritative state over HTTP when replay cannot safely catch up.",[197,496,130],{"id":129},[145,498,499,500,503,504,491,507,510],{},"Pass a durable ",[156,501,502],{},"cursorStore"," if the app must resume across page loads. Its ",[156,505,506],{},"load",[156,508,509],{},"save"," methods must persist the cursor after the change is applied. Without one, the SDK manages only the current session.",[197,512,133],{"id":132},[145,514,515,516,519],{},"If replay is unsafe, clear affected cached state and query ",[203,517,518],{"href":57},"hosted analytics"," again. A notification is not the new analytics payload. The SDK owns reconnect, replay, ACK, and ticket rotation; your callbacks own cache correctness.",[197,521,136],{"id":135},[145,523,524,525,491,528,350],{},"Drop the connection in development. Confirm that the ticket endpoint issues a new ticket, the app either replays or resyncs, and the UI returns to a current HTTP result. See the ",[203,526,527],{"href":22},"realtime reference",[203,529,107],{"href":106},{"title":113,"navigation":531,"description":114},{"title":23},{"title":113,"description":147,"toc":533},{"title":137,"searchDepth":138,"depth":138,"links":534},[535,536,537,538,539,540],{"id":119,"depth":121,"text":120},{"id":123,"depth":121,"text":124},{"id":126,"depth":121,"text":127},{"id":129,"depth":121,"text":130},{"id":132,"depth":121,"text":133},{"id":135,"depth":121,"text":136},"sdkDocs\u002Fguides\u002F3.build-integrations\u002F4.realtime.md","md",{"title":23},{"title":113,"description":114},"\u002Fopt\u002Factions-runner\u002F_work\u002Fgscdump.com\u002Fgscdump.com\u002Fnode_modules\u002F.cache\u002Fcomark-content\u002Fgit\u002Fd100867c457f148bef5f\u002Fdocs\u002Fgscdump-sdk\u002Fguides\u002F3.build-integrations\u002F4.realtime.md",{"loc":90},1794983848644]