[{"data":1,"prerenderedAt":394},["ShallowReactive",2],{"navigation":3,"\u002Fdeprecations":116,"\u002Fdeprecations-surround":389},[4,23,61,82,108,112],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":15,"path":16,"stem":17},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":19,"path":20,"stem":21},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"Guides","i-lucide-book-open","\u002Fguides","2.guides",[29,33,37,41,45,49,53,57],{"title":30,"path":31,"stem":32},"Connection & config","\u002Fguides\u002Fconnection","2.guides\u002F1.connection",{"title":34,"path":35,"stem":36},"Publish, RPC, history, presence","\u002Fguides\u002Foperations","2.guides\u002F2.operations",{"title":38,"path":39,"stem":40},"Events","\u002Fguides\u002Fevents","2.guides\u002F3.events",{"title":42,"path":43,"stem":44},"Subscriptions","\u002Fguides\u002Fsubscriptions","2.guides\u002F4.subscriptions",{"title":46,"path":47,"stem":48},"Tokens","\u002Fguides\u002Ftokens","2.guides\u002F5.tokens",{"title":50,"path":51,"stem":52},"Payloads (base64 vs rawJson)","\u002Fguides\u002Fpayloads","2.guides\u002F6.payloads",{"title":54,"path":55,"stem":56},"Rust backend","\u002Fguides\u002Frust","2.guides\u002F7.rust",{"title":58,"path":59,"stem":60},"Permissions","\u002Fguides\u002Fpermissions","2.guides\u002F8.permissions",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":22},"API reference","i-lucide-file-code","\u002Freference","3.reference",[67,71,75,79],{"title":68,"path":69,"stem":70},"JavaScript API","\u002Freference\u002Fjavascript-api","3.reference\u002F1.javascript-api",{"title":72,"path":73,"stem":74},"Types","\u002Freference\u002Ftypes","3.reference\u002F2.types",{"title":76,"path":77,"stem":78},"Tauri commands","\u002Freference\u002Fcommands","3.reference\u002F3.commands",{"title":58,"path":80,"stem":81},"\u002Freference\u002Fpermissions","3.reference\u002F4.permissions",{"title":83,"icon":84,"path":85,"stem":86,"children":87,"page":22},"Platforms","i-lucide-monitor-smartphone","\u002Fplatforms","4.platforms",[88,92,96,100,104],{"title":89,"path":90,"stem":91},"Overview","\u002Fplatforms\u002Foverview","4.platforms\u002F1.overview",{"title":93,"path":94,"stem":95},"Desktop","\u002Fplatforms\u002Fdesktop","4.platforms\u002F2.desktop",{"title":97,"path":98,"stem":99},"Android","\u002Fplatforms\u002Fandroid","4.platforms\u002F3.android",{"title":101,"path":102,"stem":103},"iOS","\u002Fplatforms\u002Fios","4.platforms\u002F4.ios",{"title":105,"path":106,"stem":107},"Centrifugo server","\u002Fplatforms\u002Fserver","4.platforms\u002F5.server",{"title":109,"path":110,"stem":111},"Deprecations","\u002Fdeprecations","5.deprecations",{"title":113,"path":114,"stem":115},"Changelog","\u002Fchangelog","9.changelog",{"id":117,"title":109,"body":118,"description":382,"extension":383,"generated":22,"links":384,"meta":385,"navigation":386,"path":110,"seo":387,"stem":111,"__hash__":388},"docs\u002F5.deprecations.md",{"type":119,"value":120,"toc":376},"minimark",[121,136,287,292,370],[122,123,124,125,135],"p",{},"0.2.0 replaced the plugin's own client with the official SDK\n",[126,127,131],"a",{"href":128,"rel":129},"https:\u002F\u002Fgithub.com\u002Fcentrifugal\u002Fcentrifuge-rust",[130],"nofollow",[132,133,134],"code",{},"centrifuge-client",". The JavaScript API stayed;\na few things the SDK does not have are deprecated.",[137,138,139,155],"table",{},[140,141,142],"thead",{},[143,144,145,149,152],"tr",{},[146,147,148],"th",{},"What",[146,150,151],{},"Now",[146,153,154],{},"Instead",[156,157,158,180,210,236,248,266],"tbody",{},[143,159,160,166,173],{},[161,162,163],"td",{},[132,164,165],{},"ping()",[161,167,168,169,172],{},"Resolves when connected, rejects with ",[132,170,171],{},"NotConnected"," otherwise. Sends nothing.",[161,174,175,176,179],{},"Nothing: the SDK answers server pings and reconnects on a missing ping. Use ",[132,177,178],{},"isConnected()"," to check.",[143,181,182,200,207],{},[161,183,184,187,188,191,192,195,196,199],{},[132,185,186],{},"publish"," with ",[132,189,190],{},"type"," ≠ 0, ",[132,193,194],{},"key",", ",[132,197,198],{},"removed: true"," (map publish)",[161,201,202,203,206],{},"Rejected with ",[132,204,205],{},"{ Unsupported: \"map publish (type\u002Fkey\u002Fremoved)\" }"," before anything is sent.",[161,208,209],{},"Regular publish.",[143,211,212,227,233],{},[161,213,214,187,217,195,220,223,224,226],{},[132,215,216],{},"subRefresh",[132,218,219],{},"items",[132,221,222],{},"untrackKeys"," or ",[132,225,190],{}," ≠ 0 (track\u002Funtrack)",[161,228,202,229,232],{},[132,230,231],{},"{ Unsupported: \"track\u002Funtrack sub refresh\" }",".",[161,234,235],{},"—",[143,237,238,243,246],{},[161,239,240],{},[132,241,242],{},"subRefresh.signature",[161,244,245],{},"Ignored.",[161,247,235],{},[143,249,250,255,257],{},[161,251,252],{},[132,253,254],{},"history({ since })",[161,256,245],{},[161,258,259,260,232],{},"Subscribe with ",[126,261,263],{"href":262},"\u002Fguides\u002Fsubscriptions#resume-from-a-saved-position",[132,264,265],{},"since",[143,267,268,271,274],{},[161,269,270],{},"Manual token refresh on a timer",[161,272,273],{},"Not needed.",[161,275,276,277,280,281,284,285,232],{},"The SDK asks with ",[132,278,279],{},"need_token"," \u002F ",[132,282,283],{},"need_sub_token"," before expiry, see ",[126,286,46],{"href":47},[288,289,291],"h2",{"id":290},"behaviour-changes-in-02","Behaviour changes in 0.2",[293,294,295,312,325,354],"ul",{},[296,297,298,301,302,304,305,308,309,311],"li",{},[132,299,300],{},"refresh()"," answers a pending ",[132,303,279],{},"; only when none is pending does it set the token for\nthe next connect. ",[132,306,307],{},"subRefresh()"," answers ",[132,310,283],{}," and rejects when none is pending.",[296,313,314,316,317,320,321,324],{},[132,315,279],{}," is used only when ",[132,318,319],{},"token"," is set or ",[132,322,323],{},"requestToken: true","; anonymous connections no\nlonger wait for the frontend.",[296,326,327,330,331,195,334,195,337,340,341,344,345,348,349,280,351,232],{},[132,328,329],{},"subscribed"," carries ",[132,332,333],{},"wasRecovering",[132,335,336],{},"recovered",[132,338,339],{},"streamPosition","; ",[132,342,343],{},"connecting"," \u002F\n",[132,346,347],{},"disconnected"," carry ",[132,350,132],{},[132,352,353],{},"reason",[296,355,356,357,195,360,195,363,366,367,232],{},"Rust: the old client modules (",[132,358,359],{},"client",[132,361,362],{},"config",[132,364,365],{},"protocol",", …) are gone; the SDK is\nre-exported as ",[132,368,369],{},"tauri_plugin_centrifugo::centrifuge",[122,371,372,373,232],{},"The full list is in the ",[126,374,375],{"href":114},"changelog",{"title":377,"searchDepth":378,"depth":379,"links":380},"",2,3,[381],{"id":290,"depth":378,"text":291},"What 0.2 (the move to the official centrifuge-client SDK) deprecated or no longer supports.","md",null,{},true,{"title":109,"description":382},"qN7nRgp1MppDkdoQYrzwr0bfR_fw3iTiQkGEbmXFR1M",[390,392],{"title":105,"path":106,"stem":107,"description":391,"children":-1},"Supported Centrifugo versions and the server options the plugin uses.",{"title":113,"path":114,"stem":115,"description":393,"children":-1},"All notable changes to tauri-plugin-centrifugo and tauri-plugin-centrifugo-api.",1794166800621]