[{"data":1,"prerenderedAt":444},["ShallowReactive",2],{"sdk-docs-navigation":3,"sdk-docs-page:\u002Fgscdump-sdk\u002Fapi\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":23,"description":113,"body":114,"id":439,"path":22,"stem":24,"extension":440,"seo":441,"_source":442,"sitemap":443},"Receive hosted change notifications with tickets, replay, and application resync.",{"toc":115,"nodes":119,"frontmatter":435,"meta":436},{"links":116,"title":117,"searchDepth":118,"depth":118},[],"",3,[120,124,128,160,166,422],[121,122,23],"h1",{"id":123},"realtime",[125,126,127],"p",{},"The browser receives a short-lived, single-use ticket. It never receives the\nlong-lived Bearer credential.",[129,130,131,144,154,157],"ol",{},[132,133,134,135,139,140,143],"li",{},"Your server calls ",[136,137,138],"code",{},"realtime.tickets.create"," with ",[136,141,142],{},"{}"," or the browser's exact\nregistered Origin.",[132,145,146,147,139,150,153],{},"The browser opens ",[136,148,149],{},"socketUrl",[136,151,152],{},"gscdump.v1"," and the ticket as its two WebSocket subprotocols.",[132,155,156],{},"The client applies each durable event before it advances its cursor or\nacknowledges the event.",[132,158,159],{},"If replay is unsafe, the client runs a full authoritative resync before it\nreports fresh state.",[125,161,162,165],{},[136,163,164],{},"createGscdumpRealtimeV1Client"," owns ticket rotation, replay, cumulative ACKs,\nheartbeat checks, reconnect backoff, and the 15-minute connection lifetime.\nYou provide the application-specific effects:",[167,168,172],"pre",{"language":169,"class":170,"tabindex":171},"ts","rangi shiki shj-lang-ts",0,[136,173,175,191,192,191,199,191,204,191,217,191,219,191,238,191,267,191,273,191,275,191,288,191,322,191,329,191,346,191,362,191,368,191,383,191,394,191,400,191,406,191,408],{"class":174},"language-ts",[176,177,180,185,186],"span",{"class":178,"style":179},"line","display: inline",[176,181,184],{"class":182,"style":183},"shj-syn-kwd shj-kwd","--shiki-light:#cf222e;--shiki-default:#cf222e;color:#cf222e;--shiki-dark:#ff7b72","import"," ",[176,187,190],{"class":188,"style":189},"shj-syn-bracket shj-bracket","--shiki-light:#57606a;--shiki-default:#57606a;color:#57606a;--shiki-dark:#8b949e","{","\n",[176,193,194,195],{"class":178,"style":179},"  createGscdumpRealtimeV1Client",[176,196,198],{"class":197,"style":183},"shj-syn-oper shj-oper",",",[176,200,201,202],{"class":178,"style":179},"  createGscdumpV1Client",[176,203,198],{"class":197,"style":183},[176,205,206,185,209,185,212],{"class":178,"style":179},[176,207,208],{"class":188,"style":189},"}",[176,210,211],{"class":182,"style":183},"from",[176,213,216],{"class":214,"style":215},"shj-syn-str shj-str","--shiki-light:#0a3069;--shiki-default:#0a3069;color:#0a3069;--shiki-dark:#a5d6ff","'@gscdump\u002Fsdk\u002Fv1'",[176,218],{"class":178,"style":179},[176,220,221,224,225,185,228,233,236],{"class":178,"style":179},[176,222,223],{"class":182,"style":183},"const"," http ",[176,226,227],{"class":197,"style":183},"=",[176,229,232],{"class":230,"style":231},"shj-syn-func shj-func","--shiki-light:#8250df;--shiki-default:#8250df;color:#8250df;--shiki-dark:#d2a8ff","createGscdumpV1Client",[176,234,235],{"class":188,"style":189},"(",[176,237,190],{"class":188,"style":189},[176,239,240,241,185,244,246,185,249,252,253,256,257,259,264],{"class":178,"style":179},"  credential",[176,242,243],{"class":197,"style":183},":",[176,245,235],{"class":188,"style":189},[176,247,248],{"class":188,"style":189},")",[176,250,251],{"class":182,"style":183},"=>"," process",[176,254,255],{"class":197,"style":183},".","env",[176,258,255],{"class":197,"style":183},[176,260,263],{"class":261,"style":262},"shj-syn-num shj-num","--shiki-light:#0550ae;--shiki-default:#0550ae;color:#0550ae;--shiki-dark:#79c0ff","GSCDUMP_API_KEY",[176,265,266],{"class":197,"style":183},"!,",[176,268,269,271],{"class":178,"style":179},[176,270,208],{"class":188,"style":189},[176,272,248],{"class":188,"style":189},[176,274],{"class":178,"style":179},[176,276,277,279,280,185,282,284,286],{"class":178,"style":179},[176,278,223],{"class":182,"style":183}," realtime ",[176,281,227],{"class":197,"style":183},[176,283,164],{"class":230,"style":231},[176,285,235],{"class":188,"style":189},[176,287,190],{"class":188,"style":189},[176,289,290,291,185,293,295,185,297,299,300,302,305,307,309,310,185,312,314,185,316,318,320],{"class":178,"style":179},"  ticketProvider",[176,292,243],{"class":197,"style":183},[176,294,235],{"class":188,"style":189},[176,296,248],{"class":188,"style":189},[176,298,251],{"class":182,"style":183}," http",[176,301,255],{"class":197,"style":183},[176,303,304],{"class":230,"style":231},"createRealtimeTicket",[176,306,235],{"class":188,"style":189},[176,308,190],{"class":188,"style":189}," body",[176,311,243],{"class":197,"style":183},[176,313,190],{"class":188,"style":189},[176,315,208],{"class":188,"style":189},[176,317,208],{"class":188,"style":189},[176,319,248],{"class":188,"style":189},[176,321,198],{"class":197,"style":183},[176,323,324,325],{"class":178,"style":179},"  ",[176,326,328],{"class":327,"style":189},"shj-syn-cmnt shj-cmnt","\u002F\u002F Implement these hooks in your application.",[176,330,331,332,185,334,185,337,339,340,185,342,185,344],{"class":178,"style":179},"  applyEvent",[176,333,243],{"class":197,"style":183},[176,335,336],{"class":182,"style":183},"async",[176,338,235],{"class":188,"style":189},"event",[176,341,248],{"class":188,"style":189},[176,343,251],{"class":182,"style":183},[176,345,190],{"class":188,"style":189},[176,347,348,349,185,352,355,339,357,359,360],{"class":178,"style":179},"    ",[176,350,351],{"class":182,"style":183},"await",[176,353,354],{"class":230,"style":231},"invalidateResources",[176,356,235],{"class":188,"style":189},[176,358,255],{"class":197,"style":183},"changes",[176,361,248],{"class":188,"style":189},[176,363,324,364,366],{"class":178,"style":179},[176,365,208],{"class":188,"style":189},[176,367,198],{"class":197,"style":183},[176,369,370,371,185,373,185,375,377,185,379,185,381],{"class":178,"style":179},"  resync",[176,372,243],{"class":197,"style":183},[176,374,336],{"class":182,"style":183},[176,376,235],{"class":188,"style":189},[176,378,248],{"class":188,"style":189},[176,380,251],{"class":182,"style":183},[176,382,190],{"class":188,"style":189},[176,384,348,385,185,387,390,392],{"class":178,"style":179},[176,386,351],{"class":182,"style":183},[176,388,389],{"class":230,"style":231},"reloadAuthoritativeState",[176,391,235],{"class":188,"style":189},[176,393,248],{"class":188,"style":189},[176,395,324,396,398],{"class":178,"style":179},[176,397,208],{"class":188,"style":189},[176,399,198],{"class":197,"style":183},[176,401,402,404],{"class":178,"style":179},[176,403,208],{"class":188,"style":189},[176,405,248],{"class":188,"style":189},[176,407],{"class":178,"style":179},[176,409,410,412,413,415,418,420],{"class":178,"style":179},[176,411,351],{"class":182,"style":183}," realtime",[176,414,255],{"class":197,"style":183},[176,416,417],{"class":230,"style":231},"start",[176,419,235],{"class":188,"style":189},[176,421,248],{"class":188,"style":189},[125,423,424,425,428,429,434],{},"This example runs on the server.\nFor browsers, make ",[136,426,427],{},"ticketProvider"," call your same-origin server ticket endpoint.\nThat endpoint must request a ticket with the browser's exact registered Origin.\nGenerate the ",[430,431,433],"a",{"href":432},"\u002Fgscdump-sdk\u002Fapi\u002Fhosted-http#api-specifications","AsyncAPI specification"," for frame schemas and connection rules.",{"title":23,"description":113},{"title":23,"description":127,"toc":437},{"title":117,"searchDepth":118,"depth":118,"links":438},[],"sdkDocs\u002Fapi\u002F3.realtime.md","md",{"title":23,"description":113},"\u002Fopt\u002Factions-runner\u002F_work\u002Fgscdump.com\u002Fgscdump.com\u002Fnode_modules\u002F.cache\u002Fcomark-content\u002Fgit\u002Fd100867c457f148bef5f\u002Fdocs\u002Fgscdump-sdk\u002Fapi\u002F3.realtime.md",{"loc":22},1794983848644]