[{"data":1,"prerenderedAt":972},["ShallowReactive",2],{"navigation":3,"\u002Fguides\u002Fconnection":116,"\u002Fguides\u002Fconnection-surround":967},[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":30,"body":118,"description":961,"extension":962,"generated":22,"links":963,"meta":964,"navigation":177,"path":31,"seo":965,"stem":32,"__hash__":966},"docs\u002F2.guides\u002F1.connection.md",{"type":119,"value":120,"toc":954},"minimark",[121,126,423,442,593,602,606,629,642,646,737,753,757,773,786,790,801,942,950],[122,123,125],"h2",{"id":124},"connect","Connect",[127,128,133],"pre",{"className":129,"code":130,"language":131,"meta":132,"style":132},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { connect } from \"tauri-plugin-centrifugo-api\";\n\nawait connect({\n  url: \"wss:\u002F\u002Fexample.com\u002Fconnection\u002Fwebsocket\",\n  token: \"\u003Cconnection JWT>\",                    \u002F\u002F optional\n  name: \"my-app\",                               \u002F\u002F optional, client name\n  version: \"1.4.0\",                             \u002F\u002F optional, client version\n  channels: [\"news\", \"updates\"],                \u002F\u002F subscribed with default options\n  useProtobuf: false,                           \u002F\u002F JSON protocol\n  readTimeout: 5000,                            \u002F\u002F command timeout, ms\n  httpStreamUrl: \"https:\u002F\u002Fexample.com\u002Fconnection\u002Fhttp_stream\", \u002F\u002F optional fallback\n  headers: { \"X-App\": \"demo\" },                 \u002F\u002F optional HTTP headers\n  requestToken: false,                          \u002F\u002F true: ask the frontend for the token\n});\n","ts","",[134,135,136,172,179,194,214,236,256,276,311,328,345,365,397,412],"code",{"__ignoreMap":132},[137,138,141,145,149,153,156,159,162,166,169],"span",{"class":139,"line":140},"line",1,[137,142,144],{"class":143},"s7zQu","import",[137,146,148],{"class":147},"sMK4o"," {",[137,150,152],{"class":151},"sTEyZ"," connect",[137,154,155],{"class":147}," }",[137,157,158],{"class":143}," from",[137,160,161],{"class":147}," \"",[137,163,165],{"class":164},"sfazB","tauri-plugin-centrifugo-api",[137,167,168],{"class":147},"\"",[137,170,171],{"class":147},";\n",[137,173,175],{"class":139,"line":174},2,[137,176,178],{"emptyLinePlaceholder":177},true,"\n",[137,180,182,185,188,191],{"class":139,"line":181},3,[137,183,184],{"class":143},"await",[137,186,152],{"class":187},"s2Zo4",[137,189,190],{"class":151},"(",[137,192,193],{"class":147},"{\n",[137,195,197,201,204,206,209,211],{"class":139,"line":196},4,[137,198,200],{"class":199},"swJcz","  url",[137,202,203],{"class":147},":",[137,205,161],{"class":147},[137,207,208],{"class":164},"wss:\u002F\u002Fexample.com\u002Fconnection\u002Fwebsocket",[137,210,168],{"class":147},[137,212,213],{"class":147},",\n",[137,215,217,220,222,224,227,229,232],{"class":139,"line":216},5,[137,218,219],{"class":199},"  token",[137,221,203],{"class":147},[137,223,161],{"class":147},[137,225,226],{"class":164},"\u003Cconnection JWT>",[137,228,168],{"class":147},[137,230,231],{"class":147},",",[137,233,235],{"class":234},"sHwdD","                    \u002F\u002F optional\n",[137,237,239,242,244,246,249,251,253],{"class":139,"line":238},6,[137,240,241],{"class":199},"  name",[137,243,203],{"class":147},[137,245,161],{"class":147},[137,247,248],{"class":164},"my-app",[137,250,168],{"class":147},[137,252,231],{"class":147},[137,254,255],{"class":234},"                               \u002F\u002F optional, client name\n",[137,257,259,262,264,266,269,271,273],{"class":139,"line":258},7,[137,260,261],{"class":199},"  version",[137,263,203],{"class":147},[137,265,161],{"class":147},[137,267,268],{"class":164},"1.4.0",[137,270,168],{"class":147},[137,272,231],{"class":147},[137,274,275],{"class":234},"                             \u002F\u002F optional, client version\n",[137,277,279,282,284,287,289,292,294,296,298,301,303,306,308],{"class":139,"line":278},8,[137,280,281],{"class":199},"  channels",[137,283,203],{"class":147},[137,285,286],{"class":151}," [",[137,288,168],{"class":147},[137,290,291],{"class":164},"news",[137,293,168],{"class":147},[137,295,231],{"class":147},[137,297,161],{"class":147},[137,299,300],{"class":164},"updates",[137,302,168],{"class":147},[137,304,305],{"class":151},"]",[137,307,231],{"class":147},[137,309,310],{"class":234},"                \u002F\u002F subscribed with default options\n",[137,312,314,317,319,323,325],{"class":139,"line":313},9,[137,315,316],{"class":199},"  useProtobuf",[137,318,203],{"class":147},[137,320,322],{"class":321},"sfNiH"," false",[137,324,231],{"class":147},[137,326,327],{"class":234},"                           \u002F\u002F JSON protocol\n",[137,329,331,334,336,340,342],{"class":139,"line":330},10,[137,332,333],{"class":199},"  readTimeout",[137,335,203],{"class":147},[137,337,339],{"class":338},"sbssI"," 5000",[137,341,231],{"class":147},[137,343,344],{"class":234},"                            \u002F\u002F command timeout, ms\n",[137,346,348,351,353,355,358,360,362],{"class":139,"line":347},11,[137,349,350],{"class":199},"  httpStreamUrl",[137,352,203],{"class":147},[137,354,161],{"class":147},[137,356,357],{"class":164},"https:\u002F\u002Fexample.com\u002Fconnection\u002Fhttp_stream",[137,359,168],{"class":147},[137,361,231],{"class":147},[137,363,364],{"class":234}," \u002F\u002F optional fallback\n",[137,366,368,371,373,375,377,380,382,384,386,389,391,394],{"class":139,"line":367},12,[137,369,370],{"class":199},"  headers",[137,372,203],{"class":147},[137,374,148],{"class":147},[137,376,161],{"class":147},[137,378,379],{"class":199},"X-App",[137,381,168],{"class":147},[137,383,203],{"class":147},[137,385,161],{"class":147},[137,387,388],{"class":164},"demo",[137,390,168],{"class":147},[137,392,393],{"class":147}," },",[137,395,396],{"class":234},"                 \u002F\u002F optional HTTP headers\n",[137,398,400,403,405,407,409],{"class":139,"line":399},13,[137,401,402],{"class":199},"  requestToken",[137,404,203],{"class":147},[137,406,322],{"class":321},[137,408,231],{"class":147},[137,410,411],{"class":234},"                          \u002F\u002F true: ask the frontend for the token\n",[137,413,415,418,421],{"class":139,"line":414},14,[137,416,417],{"class":147},"}",[137,419,420],{"class":151},")",[137,422,171],{"class":147},[424,425,426,429,430,433,434,437,438,441],"p",{},[134,427,428],{},"connect()"," closes the previous client if there is one, builds a new client, subscribes to\n",[134,431,432],{},"channels"," and starts connecting. It resolves at once: the result arrives as\n",[134,435,436],{},"connecting"," → ",[134,439,440],{},"connected"," events. It rejects only on a bad config (for example an invalid header\nname or value).",[443,444,445,458],"table",{},[446,447,448],"thead",{},[449,450,451,455],"tr",{},[452,453,454],"th",{},"Option",[452,456,457],{},"Meaning",[459,460,461,480,494,511,525,539,556,566,583],"tbody",{},[449,462,463,469],{},[464,465,466],"td",{},[134,467,468],{},"url",[464,470,471,472,475,476,479],{},"WebSocket endpoint, usually ",[134,473,474],{},"…\u002Fconnection\u002Fwebsocket",". ",[134,477,478],{},"wss:\u002F\u002F"," for TLS.",[449,481,482,487],{},[464,483,484],{},[134,485,486],{},"token",[464,488,489,490,493],{},"Connection JWT. Before it expires the SDK asks for a new one, see ",[491,492,46],"a",{"href":47},".",[449,495,496,501],{},[464,497,498],{},[134,499,500],{},"requestToken",[464,502,503,504,506,507,510],{},"No ",[134,505,486],{},": ask the frontend with a ",[134,508,509],{},"need_token"," event instead.",[449,512,513,522],{},[464,514,515,518,519],{},[134,516,517],{},"name",", ",[134,520,521],{},"version",[464,523,524],{},"Sent to the server in the connect command.",[449,526,527,531],{},[464,528,529],{},[134,530,432],{},[464,532,533,534,493],{},"Client-side subscriptions with default options. For options use ",[491,535,536],{"href":43},[134,537,538],{},"addSubscriptionWithOptions",[449,540,541,546],{},[464,542,543],{},[134,544,545],{},"useProtobuf",[464,547,548,551,552,555],{},[134,549,550],{},"true",": Protobuf protocol; ",[134,553,554],{},"false",": JSON. Payload handling in the plugin is the same.",[449,557,558,563],{},[464,559,560],{},[134,561,562],{},"readTimeout",[464,564,565],{},"Timeout of a command (publish, RPC, history, …) in ms. SDK default 5000.",[449,567,568,573],{},[464,569,570],{},[134,571,572],{},"httpStreamUrl",[464,574,575,576,578,579,582],{},"HTTP-streaming endpoint, tried together with ",[134,577,468],{}," on the first connect. Needs Centrifugo v5+ with ",[134,580,581],{},"http_stream"," enabled.",[449,584,585,590],{},[464,586,587],{},[134,588,589],{},"headers",[464,591,592],{},"Extra HTTP headers for the WebSocket upgrade and HTTP-stream requests.",[424,594,595,596,493],{},"Full type: ",[491,597,599],{"href":598},"\u002Freference\u002Ftypes#startconfig",[134,600,601],{},"StartConfig",[122,603,605],{"id":604},"reconnects","Reconnects",[424,607,608,609,611,612,614,615,618,619,621,622,437,625,628],{},"The SDK keeps the connection alive by itself: it reconnects with backoff after a network error,\nwatches server pings and notices a wake from sleep. Each attempt emits ",[134,610,436],{}," (with the\n",[134,613,134],{}," and ",[134,616,617],{},"reason"," of the loss) and then ",[134,620,440],{},". Subscriptions are resubscribed after a\nreconnect (",[134,623,624],{},"subscribing",[134,626,627],{},"subscribed","), and recoverable ones get the missed publications.",[424,630,631,634,635,638,639,641],{},[134,632,633],{},"disconnected"," comes after ",[134,636,637],{},"disconnect()"," or when the server closes the connection with a code\nthat forbids reconnecting (for example an invalid token). From that state the SDK does not\nreconnect; call ",[134,640,428],{}," again.",[122,643,645],{"id":644},"state","State",[127,647,649],{"className":129,"code":648,"language":131,"meta":132,"style":132},"import { isConnected, getConnectionState, helpers } from \"tauri-plugin-centrifugo-api\";\n\nawait isConnected();             \u002F\u002F true only in the connected state\nawait getConnectionState();      \u002F\u002F 'connecting' | 'connected' | 'disconnected' | 'closed'\nawait helpers.waitForConnection(10_000); \u002F\u002F polls isConnected() every 100 ms; false on timeout\n",[134,650,651,682,686,701,714],{"__ignoreMap":132},[137,652,653,655,657,660,662,665,667,670,672,674,676,678,680],{"class":139,"line":140},[137,654,144],{"class":143},[137,656,148],{"class":147},[137,658,659],{"class":151}," isConnected",[137,661,231],{"class":147},[137,663,664],{"class":151}," getConnectionState",[137,666,231],{"class":147},[137,668,669],{"class":151}," helpers",[137,671,155],{"class":147},[137,673,158],{"class":143},[137,675,161],{"class":147},[137,677,165],{"class":164},[137,679,168],{"class":147},[137,681,171],{"class":147},[137,683,684],{"class":139,"line":174},[137,685,178],{"emptyLinePlaceholder":177},[137,687,688,690,692,695,698],{"class":139,"line":181},[137,689,184],{"class":143},[137,691,659],{"class":187},[137,693,694],{"class":151},"()",[137,696,697],{"class":147},";",[137,699,700],{"class":234},"             \u002F\u002F true only in the connected state\n",[137,702,703,705,707,709,711],{"class":139,"line":196},[137,704,184],{"class":143},[137,706,664],{"class":187},[137,708,694],{"class":151},[137,710,697],{"class":147},[137,712,713],{"class":234},"      \u002F\u002F 'connecting' | 'connected' | 'disconnected' | 'closed'\n",[137,715,716,718,720,722,725,727,730,732,734],{"class":139,"line":216},[137,717,184],{"class":143},[137,719,669],{"class":151},[137,721,493],{"class":147},[137,723,724],{"class":187},"waitForConnection",[137,726,190],{"class":151},[137,728,729],{"class":338},"10_000",[137,731,420],{"class":151},[137,733,697],{"class":147},[137,735,736],{"class":234}," \u002F\u002F polls isConnected() every 100 ms; false on timeout\n",[424,738,739,742,743,746,747,749,750,752],{},[134,740,741],{},"getConnectionState()"," returns ",[134,744,745],{},"'disconnected'"," also when there is no client (before ",[134,748,428],{}," or\nafter ",[134,751,637],{},").",[122,754,756],{"id":755},"disconnect","Disconnect",[127,758,760],{"className":129,"code":759,"language":131,"meta":132,"style":132},"await disconnect();\n",[134,761,762],{"__ignoreMap":132},[137,763,764,766,769,771],{"class":139,"line":140},[137,765,184],{"class":143},[137,767,768],{"class":187}," disconnect",[137,770,694],{"class":151},[137,772,171],{"class":147},[424,774,775,776,779,780,783,784,493],{},"Closes the connection and drops the client with all its subscriptions. Calls that need a client\n(publish, RPC, ",[134,777,778],{},"addSubscription",", …) then reject with ",[134,781,782],{},"NotConnected"," until the next ",[134,785,428],{},[122,787,789],{"id":788},"errors","Errors",[424,791,792,793,796,797,800],{},"Commands reject with the plugin's ",[134,794,795],{},"Error"," enum serialized by serde: a string for\n",[134,798,799],{},"\"NotConnected\"",", an object for the others:",[127,802,804],{"className":129,"code":803,"language":131,"meta":132,"style":132},"try {\n  await publish({ channel: \"news\", data: utils.encodeJson({ a: 1 }) });\n} catch (e) {\n  \u002F\u002F \"NotConnected\"\n  \u002F\u002F { CentrifugoError: \"...\" }  error reply from the server (permission denied, unknown channel, ...)\n  \u002F\u002F { RequestError: \"...\" }     timeout, transport or SDK error, invalid header, no pending token request\n  \u002F\u002F { Base64Error: \"...\" }      `data` is not valid base64\n  \u002F\u002F { SerializationError: \"...\" } `rawJson` data is not valid JSON\n  \u002F\u002F { Unsupported: \"...\" }      map publish, track\u002Funtrack (see Deprecations)\n  console.error(e);\n}\n",[134,805,806,814,876,888,893,898,903,908,913,918,937],{"__ignoreMap":132},[137,807,808,811],{"class":139,"line":140},[137,809,810],{"class":143},"try",[137,812,813],{"class":147}," {\n",[137,815,816,819,822,824,827,830,832,834,836,838,840,843,845,848,850,853,855,857,860,862,865,867,870,872,874],{"class":139,"line":174},[137,817,818],{"class":143},"  await",[137,820,821],{"class":187}," publish",[137,823,190],{"class":199},[137,825,826],{"class":147},"{",[137,828,829],{"class":199}," channel",[137,831,203],{"class":147},[137,833,161],{"class":147},[137,835,291],{"class":164},[137,837,168],{"class":147},[137,839,231],{"class":147},[137,841,842],{"class":199}," data",[137,844,203],{"class":147},[137,846,847],{"class":151}," utils",[137,849,493],{"class":147},[137,851,852],{"class":187},"encodeJson",[137,854,190],{"class":199},[137,856,826],{"class":147},[137,858,859],{"class":199}," a",[137,861,203],{"class":147},[137,863,864],{"class":338}," 1",[137,866,155],{"class":147},[137,868,869],{"class":199},") ",[137,871,417],{"class":147},[137,873,420],{"class":199},[137,875,171],{"class":147},[137,877,878,880,883,886],{"class":139,"line":181},[137,879,417],{"class":147},[137,881,882],{"class":143}," catch",[137,884,885],{"class":151}," (e) ",[137,887,193],{"class":147},[137,889,890],{"class":139,"line":196},[137,891,892],{"class":234},"  \u002F\u002F \"NotConnected\"\n",[137,894,895],{"class":139,"line":216},[137,896,897],{"class":234},"  \u002F\u002F { CentrifugoError: \"...\" }  error reply from the server (permission denied, unknown channel, ...)\n",[137,899,900],{"class":139,"line":238},[137,901,902],{"class":234},"  \u002F\u002F { RequestError: \"...\" }     timeout, transport or SDK error, invalid header, no pending token request\n",[137,904,905],{"class":139,"line":258},[137,906,907],{"class":234},"  \u002F\u002F { Base64Error: \"...\" }      `data` is not valid base64\n",[137,909,910],{"class":139,"line":278},[137,911,912],{"class":234},"  \u002F\u002F { SerializationError: \"...\" } `rawJson` data is not valid JSON\n",[137,914,915],{"class":139,"line":313},[137,916,917],{"class":234},"  \u002F\u002F { Unsupported: \"...\" }      map publish, track\u002Funtrack (see Deprecations)\n",[137,919,920,923,925,928,930,933,935],{"class":139,"line":330},[137,921,922],{"class":151},"  console",[137,924,493],{"class":147},[137,926,927],{"class":187},"error",[137,929,190],{"class":199},[137,931,932],{"class":151},"e",[137,934,420],{"class":199},[137,936,171],{"class":147},[137,938,939],{"class":139,"line":347},[137,940,941],{"class":147},"}\n",[424,943,944,945,947,948,493],{},"Background errors (a failed reconnect, a subscription error) come as the ",[134,946,927],{}," event instead,\nsee ",[491,949,38],{"href":39},[951,952,953],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":132,"searchDepth":174,"depth":181,"links":955},[956,957,958,959,960],{"id":124,"depth":174,"text":125},{"id":604,"depth":174,"text":605},{"id":644,"depth":174,"text":645},{"id":755,"depth":174,"text":756},{"id":788,"depth":174,"text":789},"Every connect() option, transports, reconnects, connection state and errors.","md",null,{},{"title":30,"description":961},"X3qH35vwACfYsfyMlRKZNxh3v9lMDN13Lm5GMqz3kKI",[968,970],{"title":19,"path":20,"stem":21,"description":969,"children":-1},"Connect, listen to events, subscribe, publish and clean up.",{"title":34,"path":35,"stem":36,"description":971,"children":-1},"Calling the server - publish, RPC, async send, history, presence and presence stats.",1794166800619]