[{"data":1,"prerenderedAt":1330},["ShallowReactive",2],{"navigation":3,"\u002Ftauri\u002Frust-api":129,"\u002Ftauri\u002Frust-api-surround":1325},[4,27,65,107,125],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":26},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,14,18,22],{"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",{"title":23,"path":24,"stem":25},"MSRV","\u002Fgetting-started\u002Fmsrv","1.getting-started\u002F9.msrv",false,{"title":28,"icon":29,"path":30,"stem":31,"children":32,"page":26},"Client","i-lucide-plug-zap","\u002Fclient","2.client",[33,37,41,45,49,53,57,61],{"title":34,"path":35,"stem":36},"Configuration","\u002Fclient\u002Fconfiguration","2.client\u002F1.configuration",{"title":38,"path":39,"stem":40},"Events and acks","\u002Fclient\u002Fevents-and-acks","2.client\u002F2.events-and-acks",{"title":42,"path":43,"stem":44},"Connection state","\u002Fclient\u002Fconnection-state","2.client\u002F3.connection-state",{"title":46,"path":47,"stem":48},"Transports and proxies","\u002Fclient\u002Ftransports-and-proxies","2.client\u002F4.transports-and-proxies",{"title":50,"path":51,"stem":52},"TLS","\u002Fclient\u002Ftls","2.client\u002F5.tls",{"title":54,"path":55,"stem":56},"Errors","\u002Fclient\u002Ferrors","2.client\u002F6.errors",{"title":58,"path":59,"stem":60},"Debugging","\u002Fclient\u002Fdebugging","2.client\u002F7.debugging",{"title":62,"path":63,"stem":64},"Blocking client","\u002Fclient\u002Fblocking","2.client\u002F8.blocking",{"title":66,"icon":67,"path":68,"stem":69,"children":70,"page":26},"Tauri plugin","i-simple-icons-tauri","\u002Ftauri","3.tauri",[71,75,79,83,87,91,95,99,103],{"title":72,"path":73,"stem":74},"Setup","\u002Ftauri\u002Fsetup","3.tauri\u002F1.setup",{"title":76,"path":77,"stem":78},"JavaScript API","\u002Ftauri\u002Fjavascript-api","3.tauri\u002F2.javascript-api",{"title":80,"path":81,"stem":82},"Rust API","\u002Ftauri\u002Frust-api","3.tauri\u002F3.rust-api",{"title":84,"path":85,"stem":86},"Permissions","\u002Ftauri\u002Fpermissions","3.tauri\u002F4.permissions",{"title":88,"path":89,"stem":90},"Security","\u002Ftauri\u002Fsecurity","3.tauri\u002F5.security",{"title":92,"path":93,"stem":94},"Messages and errors","\u002Ftauri\u002Fmessages-and-errors","3.tauri\u002F6.messages-and-errors",{"title":96,"path":97,"stem":98},"Troubleshooting","\u002Ftauri\u002Ftroubleshooting","3.tauri\u002F7.troubleshooting",{"title":100,"path":101,"stem":102},"Example app","\u002Ftauri\u002Fexample","3.tauri\u002F8.example",{"title":104,"path":105,"stem":106},"Plugin changelog","\u002Ftauri\u002Fchangelog","3.tauri\u002F9.changelog",{"title":108,"icon":109,"path":110,"stem":111,"children":112,"page":26},"Guides","i-lucide-book-open","\u002Fguides","4.guides",[113,117,121],{"title":114,"path":115,"stem":116},"Migration from rust_socketio","\u002Fguides\u002Fmigration","4.guides\u002F1.migration",{"title":118,"path":119,"stem":120},"Comparison","\u002Fguides\u002Fcomparison","4.guides\u002F2.comparison",{"title":122,"path":123,"stem":124},"Contributing","\u002Fguides\u002Fcontributing","4.guides\u002F3.contributing",{"title":126,"path":127,"stem":128},"Changelog","\u002Fchangelog","9.changelog",{"id":130,"title":80,"body":131,"description":1316,"extension":1317,"links":1318,"meta":1319,"navigation":228,"path":81,"seo":1320,"stem":82,"__hash__":1324},"docs\u002F3.tauri\u002F3.rust-api.md",{"type":132,"value":133,"toc":1311},"minimark",[134,164,530,656,669,674,677,1004,1091,1175,1202,1205,1247,1251,1307],[135,136,137,141,142,145,146,149,150,153,154,153,157,153,160,163],"p",{},[138,139,140],"code",{},"SocketIoExt"," adds ",[138,143,144],{},"socketio()"," to anything that implements ",[138,147,148],{},"tauri::Manager"," (",[138,151,152],{},"App",", ",[138,155,156],{},"AppHandle",[138,158,159],{},"Window",[138,161,162],{},"Webview",", ...). It panics when the plugin is not registered.",[165,166,171],"pre",{"className":167,"code":168,"language":169,"meta":170,"style":170},"language-rust shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use tauri_plugin_socketio::socketio_next::ClientBuilder;\nuse tauri_plugin_socketio::{Access, SocketIoExt};\n\n\u002F\u002F in setup or a command\nlet io = app.socketio();\nio.reserve(\"core\");      \u002F\u002F in setup, before any await: webviews cannot take the id\nlet client = io.connect(\"chat\", ClientBuilder::new(\"https:\u002F\u002Fchat.example.com\")).await?; \u002F\u002F Access::Full\nio.insert(\"core\", my_client, Access::ReadOnly)?; \u002F\u002F built elsewhere\nio.get(\"core\");          \u002F\u002F Option\u003CClient>\nio.access(\"core\");       \u002F\u002F Option\u003CAccess>\nio.ids();                \u002F\u002F Vec\u003CString>\nio.remove(\"core\");       \u002F\u002F Option\u003CClient>: unregisters, does not disconnect\nio.subscribe(\"core\", Some(vec![\"tock\".into()]), channel)?; \u002F\u002F forward to a tauri::ipc::Channel\n","rust","",[138,172,173,201,223,230,237,264,293,352,391,414,437,453,476],{"__ignoreMap":170},[174,175,178,182,186,190,193,195,198],"span",{"class":176,"line":177},"line",1,[174,179,181],{"class":180},"sbssI","use",[174,183,185],{"class":184},"sBMFI"," tauri_plugin_socketio",[174,187,189],{"class":188},"sMK4o","::",[174,191,192],{"class":184},"socketio_next",[174,194,189],{"class":188},[174,196,197],{"class":184},"ClientBuilder",[174,199,200],{"class":188},";\n",[174,202,204,206,208,211,214,217,220],{"class":176,"line":203},2,[174,205,181],{"class":180},[174,207,185],{"class":184},[174,209,210],{"class":188},"::{",[174,212,213],{"class":184},"Access",[174,215,216],{"class":188},",",[174,218,219],{"class":184}," SocketIoExt",[174,221,222],{"class":188},"};\n",[174,224,226],{"class":176,"line":225},3,[174,227,229],{"emptyLinePlaceholder":228},true,"\n",[174,231,233],{"class":176,"line":232},4,[174,234,236],{"class":235},"sHwdD","\u002F\u002F in setup or a command\n",[174,238,240,244,248,251,254,257,261],{"class":176,"line":239},5,[174,241,243],{"class":242},"spNyl","let",[174,245,247],{"class":246},"sTEyZ"," io ",[174,249,250],{"class":188},"=",[174,252,253],{"class":246}," app",[174,255,256],{"class":188},".",[174,258,260],{"class":259},"s2Zo4","socketio",[174,262,263],{"class":188},"();\n",[174,265,267,270,272,275,278,281,285,287,290],{"class":176,"line":266},6,[174,268,269],{"class":246},"io",[174,271,256],{"class":188},[174,273,274],{"class":259},"reserve",[174,276,277],{"class":188},"(",[174,279,280],{"class":188},"\"",[174,282,284],{"class":283},"sfazB","core",[174,286,280],{"class":188},[174,288,289],{"class":188},");",[174,291,292],{"class":235},"      \u002F\u002F in setup, before any await: webviews cannot take the id\n",[174,294,296,298,301,303,306,308,311,313,315,318,320,322,325,327,330,332,334,337,339,342,346,349],{"class":176,"line":295},7,[174,297,243],{"class":242},[174,299,300],{"class":246}," client ",[174,302,250],{"class":188},[174,304,305],{"class":246}," io",[174,307,256],{"class":188},[174,309,310],{"class":259},"connect",[174,312,277],{"class":188},[174,314,280],{"class":188},[174,316,317],{"class":283},"chat",[174,319,280],{"class":188},[174,321,216],{"class":188},[174,323,324],{"class":184}," ClientBuilder",[174,326,189],{"class":188},[174,328,329],{"class":259},"new",[174,331,277],{"class":188},[174,333,280],{"class":188},[174,335,336],{"class":283},"https:\u002F\u002Fchat.example.com",[174,338,280],{"class":188},[174,340,341],{"class":188},")).",[174,343,345],{"class":344},"s7zQu","await",[174,347,348],{"class":188},"?;",[174,350,351],{"class":235}," \u002F\u002F Access::Full\n",[174,353,355,357,359,362,364,366,368,370,372,375,377,380,382,385,388],{"class":176,"line":354},8,[174,356,269],{"class":246},[174,358,256],{"class":188},[174,360,361],{"class":259},"insert",[174,363,277],{"class":188},[174,365,280],{"class":188},[174,367,284],{"class":283},[174,369,280],{"class":188},[174,371,216],{"class":188},[174,373,374],{"class":246}," my_client",[174,376,216],{"class":188},[174,378,379],{"class":184}," Access",[174,381,189],{"class":188},[174,383,384],{"class":184},"ReadOnly",[174,386,387],{"class":188},")?;",[174,389,390],{"class":235}," \u002F\u002F built elsewhere\n",[174,392,394,396,398,401,403,405,407,409,411],{"class":176,"line":393},9,[174,395,269],{"class":246},[174,397,256],{"class":188},[174,399,400],{"class":259},"get",[174,402,277],{"class":188},[174,404,280],{"class":188},[174,406,284],{"class":283},[174,408,280],{"class":188},[174,410,289],{"class":188},[174,412,413],{"class":235},"          \u002F\u002F Option\u003CClient>\n",[174,415,417,419,421,424,426,428,430,432,434],{"class":176,"line":416},10,[174,418,269],{"class":246},[174,420,256],{"class":188},[174,422,423],{"class":259},"access",[174,425,277],{"class":188},[174,427,280],{"class":188},[174,429,284],{"class":283},[174,431,280],{"class":188},[174,433,289],{"class":188},[174,435,436],{"class":235},"       \u002F\u002F Option\u003CAccess>\n",[174,438,440,442,444,447,450],{"class":176,"line":439},11,[174,441,269],{"class":246},[174,443,256],{"class":188},[174,445,446],{"class":259},"ids",[174,448,449],{"class":188},"();",[174,451,452],{"class":235},"                \u002F\u002F Vec\u003CString>\n",[174,454,456,458,460,463,465,467,469,471,473],{"class":176,"line":455},12,[174,457,269],{"class":246},[174,459,256],{"class":188},[174,461,462],{"class":259},"remove",[174,464,277],{"class":188},[174,466,280],{"class":188},[174,468,284],{"class":283},[174,470,280],{"class":188},[174,472,289],{"class":188},[174,474,475],{"class":235},"       \u002F\u002F Option\u003CClient>: unregisters, does not disconnect\n",[174,477,479,481,483,486,488,490,492,494,496,499,501,504,507,509,512,514,516,519,522,525,527],{"class":176,"line":478},13,[174,480,269],{"class":246},[174,482,256],{"class":188},[174,484,485],{"class":259},"subscribe",[174,487,277],{"class":188},[174,489,280],{"class":188},[174,491,284],{"class":283},[174,493,280],{"class":188},[174,495,216],{"class":188},[174,497,498],{"class":184}," Some",[174,500,277],{"class":188},[174,502,503],{"class":259},"vec!",[174,505,506],{"class":188},"[",[174,508,280],{"class":188},[174,510,511],{"class":283},"tock",[174,513,280],{"class":188},[174,515,256],{"class":188},[174,517,518],{"class":259},"into",[174,520,521],{"class":188},"()]),",[174,523,524],{"class":246}," channel",[174,526,387],{"class":188},[174,528,529],{"class":235}," \u002F\u002F forward to a tauri::ipc::Channel\n",[531,532,533,546],"table",{},[534,535,536],"thead",{},[537,538,539,543],"tr",{},[540,541,542],"th",{},"Method",[540,544,545],{},"Behaviour",[547,548,549,568,581,604,620,639],"tbody",{},[537,550,551,557],{},[552,553,554],"td",{},[138,555,556],{},"connect(id, builder) -> Result\u003CClient>",[552,558,559,560,563,564,567],{},"builds, connects, registers as ",[138,561,562],{},"Access::Full","; ",[138,565,566],{},"AlreadyExists"," when the id is taken (the new client is dropped)",[537,569,570,575],{},[552,571,572],{},[138,573,574],{},"insert(id, client, access) -> Result\u003C()>",[552,576,577,578,580],{},"registers a client built elsewhere; ",[138,579,566],{}," when the id is taken, never replaces",[537,582,583,588],{},[552,584,585],{},[138,586,587],{},"reserve(id)",[552,589,590,591,593,594,597,598,600,601,603],{},"synchronous; a webview's ",[138,592,310],{}," with this id fails with ",[138,595,596],{},"Reserved",", Rust's ",[138,599,310],{}," \u002F ",[138,602,361],{}," work. Lasts for the app's life",[537,605,606,617],{},[552,607,608,153,611,153,614],{},[138,609,610],{},"get(id) -> Option\u003CClient>",[138,612,613],{},"access(id)",[138,615,616],{},"ids()",[552,618,619],{},"lookups",[537,621,622,627],{},[552,623,624],{},[138,625,626],{},"remove(id) -> Option\u003CClient>",[552,628,629,630,634,635,638],{},"unregisters; its subscriptions stop and its pending server acks are dropped; ",[631,632,633],"strong",{},"does not disconnect"," (call ",[138,636,637],{},"disconnect().await"," on the returned client, or drop it: the last clone closes)",[537,640,641,649],{},[552,642,643,153,646],{},[138,644,645],{},"subscribe(id, events, channel)",[138,647,648],{},"unsubscribe(id, sub)",[552,650,651,652,655],{},"what ",[138,653,654],{},"attach"," uses, for Rust-side channels (no server acks are offered to them; any subscription can be ended from Rust)",[135,657,658,659,149,662,664,665,668],{},"The JS ",[138,660,661],{},"disconnect()",[138,663,562],{}," only) unregisters first, then disconnects, so its subscriptions still see the final ",[138,666,667],{},"closed"," state.",[670,671,673],"h2",{"id":672},"read-only-clients","Read-only clients",[135,675,676],{},"When the socket belongs to Rust code that must stay free of Tauri, let that code build the client and hand it over:",[165,678,680],{"className":167,"code":679,"language":169,"meta":170,"style":170},"\u002F\u002F a Tauri-free crate\npub async fn start(url: &str) -> socketio_next::Result\u003Csocketio_next::Client> {\n    socketio_next::ClientBuilder::new(url).connect().await\n}\n\n\u002F\u002F the app\n.setup(|app| {\n    app.socketio().reserve(\"core\"); \u002F\u002F synchronous: before any page script can connect(\"core\")\n    let handle = app.handle().clone();\n    tauri::async_runtime::spawn(async move {\n        let client = core::start(\"https:\u002F\u002Fexample.com\").await?;\n        handle.socketio().insert(\"core\", client.clone(), Access::ReadOnly)?;\n        \u002F\u002F keep `client` in your own state to emit from Rust\n        Ok::\u003C_, tauri_plugin_socketio::Error>(())\n    });\n    Ok(())\n})\n",[138,681,682,687,744,772,777,781,786,804,830,854,879,912,954,959,983,989,998],{"__ignoreMap":170},[174,683,684],{"class":176,"line":177},[174,685,686],{"class":235},"\u002F\u002F a Tauri-free crate\n",[174,688,689,692,695,698,701,703,706,709,712,715,718,721,724,726,729,732,734,736,738,741],{"class":176,"line":203},[174,690,691],{"class":242},"pub",[174,693,694],{"class":180}," async",[174,696,697],{"class":180}," fn",[174,699,700],{"class":259}," start",[174,702,277],{"class":188},[174,704,705],{"class":246},"url",[174,707,708],{"class":188},":",[174,710,711],{"class":188}," &",[174,713,714],{"class":184},"str",[174,716,717],{"class":188},")",[174,719,720],{"class":188}," ->",[174,722,723],{"class":184}," socketio_next",[174,725,189],{"class":188},[174,727,728],{"class":184},"Result",[174,730,731],{"class":188},"\u003C",[174,733,192],{"class":246},[174,735,189],{"class":188},[174,737,28],{"class":184},[174,739,740],{"class":188},">",[174,742,743],{"class":188}," {\n",[174,745,746,749,751,753,755,757,759,761,764,766,769],{"class":176,"line":225},[174,747,748],{"class":184},"    socketio_next",[174,750,189],{"class":188},[174,752,197],{"class":184},[174,754,189],{"class":188},[174,756,329],{"class":259},[174,758,277],{"class":188},[174,760,705],{"class":246},[174,762,763],{"class":188},").",[174,765,310],{"class":259},[174,767,768],{"class":188},"().",[174,770,771],{"class":344},"await\n",[174,773,774],{"class":176,"line":232},[174,775,776],{"class":188},"}\n",[174,778,779],{"class":176,"line":239},[174,780,229],{"emptyLinePlaceholder":228},[174,782,783],{"class":176,"line":266},[174,784,785],{"class":235},"\u002F\u002F the app\n",[174,787,788,790,793,796,799,802],{"class":176,"line":295},[174,789,256],{"class":188},[174,791,792],{"class":259},"setup",[174,794,795],{"class":188},"(|",[174,797,798],{"class":246},"app",[174,800,801],{"class":188},"|",[174,803,743],{"class":188},[174,805,806,809,811,813,815,817,819,821,823,825,827],{"class":176,"line":354},[174,807,808],{"class":246},"    app",[174,810,256],{"class":188},[174,812,260],{"class":259},[174,814,768],{"class":188},[174,816,274],{"class":259},[174,818,277],{"class":188},[174,820,280],{"class":188},[174,822,284],{"class":283},[174,824,280],{"class":188},[174,826,289],{"class":188},[174,828,829],{"class":235}," \u002F\u002F synchronous: before any page script can connect(\"core\")\n",[174,831,832,835,838,840,842,844,847,849,852],{"class":176,"line":393},[174,833,834],{"class":242},"    let",[174,836,837],{"class":246}," handle ",[174,839,250],{"class":188},[174,841,253],{"class":246},[174,843,256],{"class":188},[174,845,846],{"class":259},"handle",[174,848,768],{"class":188},[174,850,851],{"class":259},"clone",[174,853,263],{"class":188},[174,855,856,859,861,864,866,869,871,874,877],{"class":176,"line":416},[174,857,858],{"class":184},"    tauri",[174,860,189],{"class":188},[174,862,863],{"class":184},"async_runtime",[174,865,189],{"class":188},[174,867,868],{"class":259},"spawn",[174,870,277],{"class":188},[174,872,873],{"class":180},"async",[174,875,876],{"class":180}," move",[174,878,743],{"class":188},[174,880,881,884,886,888,891,893,896,898,900,903,905,907,909],{"class":176,"line":439},[174,882,883],{"class":242},"        let",[174,885,300],{"class":246},[174,887,250],{"class":188},[174,889,890],{"class":184}," core",[174,892,189],{"class":188},[174,894,895],{"class":259},"start",[174,897,277],{"class":188},[174,899,280],{"class":188},[174,901,902],{"class":283},"https:\u002F\u002Fexample.com",[174,904,280],{"class":188},[174,906,763],{"class":188},[174,908,345],{"class":344},[174,910,911],{"class":188},"?;\n",[174,913,914,917,919,921,923,925,927,929,931,933,935,938,940,942,945,947,949,951],{"class":176,"line":455},[174,915,916],{"class":246},"        handle",[174,918,256],{"class":188},[174,920,260],{"class":259},[174,922,768],{"class":188},[174,924,361],{"class":259},[174,926,277],{"class":188},[174,928,280],{"class":188},[174,930,284],{"class":283},[174,932,280],{"class":188},[174,934,216],{"class":188},[174,936,937],{"class":246}," client",[174,939,256],{"class":188},[174,941,851],{"class":259},[174,943,944],{"class":188},"(),",[174,946,379],{"class":184},[174,948,189],{"class":188},[174,950,384],{"class":184},[174,952,953],{"class":188},")?;\n",[174,955,956],{"class":176,"line":478},[174,957,958],{"class":235},"        \u002F\u002F keep `client` in your own state to emit from Rust\n",[174,960,962,965,968,971,973,975,977,980],{"class":176,"line":961},14,[174,963,964],{"class":184},"        Ok",[174,966,967],{"class":188},"::\u003C",[174,969,970],{"class":246},"_",[174,972,216],{"class":188},[174,974,185],{"class":184},[174,976,189],{"class":188},[174,978,979],{"class":184},"Error",[174,981,982],{"class":188},">(())\n",[174,984,986],{"class":176,"line":985},15,[174,987,988],{"class":188},"    });\n",[174,990,992,995],{"class":176,"line":991},16,[174,993,994],{"class":184},"    Ok",[174,996,997],{"class":188},"(())\n",[174,999,1001],{"class":176,"line":1000},17,[174,1002,1003],{"class":188},"})\n",[165,1005,1010],{"className":1006,"code":1007,"filename":1008,"language":1009,"meta":170,"style":170},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{ \"identifier\": \"default\", \"windows\": [\"main\"], \"permissions\": [\"core:default\", \"socketio:allow-read\"] }\n","src-tauri\u002Fcapabilities\u002Fdefault.json","json",[138,1011,1012],{"__ignoreMap":170},[174,1013,1014,1017,1020,1023,1025,1027,1029,1032,1034,1036,1038,1041,1043,1045,1048,1050,1053,1055,1058,1060,1063,1065,1067,1069,1071,1074,1076,1078,1080,1083,1085,1088],{"class":176,"line":177},[174,1015,1016],{"class":188},"{",[174,1018,1019],{"class":188}," \"",[174,1021,1022],{"class":242},"identifier",[174,1024,280],{"class":188},[174,1026,708],{"class":188},[174,1028,1019],{"class":188},[174,1030,1031],{"class":283},"default",[174,1033,280],{"class":188},[174,1035,216],{"class":188},[174,1037,1019],{"class":188},[174,1039,1040],{"class":242},"windows",[174,1042,280],{"class":188},[174,1044,708],{"class":188},[174,1046,1047],{"class":188}," [",[174,1049,280],{"class":188},[174,1051,1052],{"class":283},"main",[174,1054,280],{"class":188},[174,1056,1057],{"class":188},"],",[174,1059,1019],{"class":188},[174,1061,1062],{"class":242},"permissions",[174,1064,280],{"class":188},[174,1066,708],{"class":188},[174,1068,1047],{"class":188},[174,1070,280],{"class":188},[174,1072,1073],{"class":283},"core:default",[174,1075,280],{"class":188},[174,1077,216],{"class":188},[174,1079,1019],{"class":188},[174,1081,1082],{"class":283},"socketio:allow-read",[174,1084,280],{"class":188},[174,1086,1087],{"class":188},"]",[174,1089,1090],{"class":188}," }\n",[165,1092,1096],{"className":1093,"code":1094,"language":1095,"meta":170,"style":170},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const core = await attach('core')\ncore.on('news', render)\nawait core.emit('x') \u002F\u002F rejects: AccessDenied\n","ts",[138,1097,1098,1126,1149],{"__ignoreMap":170},[174,1099,1100,1103,1106,1108,1111,1114,1116,1119,1121,1123],{"class":176,"line":177},[174,1101,1102],{"class":242},"const",[174,1104,1105],{"class":246}," core ",[174,1107,250],{"class":188},[174,1109,1110],{"class":344}," await",[174,1112,1113],{"class":259}," attach",[174,1115,277],{"class":246},[174,1117,1118],{"class":188},"'",[174,1120,284],{"class":283},[174,1122,1118],{"class":188},[174,1124,1125],{"class":246},")\n",[174,1127,1128,1130,1132,1135,1137,1139,1142,1144,1146],{"class":176,"line":203},[174,1129,284],{"class":246},[174,1131,256],{"class":188},[174,1133,1134],{"class":259},"on",[174,1136,277],{"class":246},[174,1138,1118],{"class":188},[174,1140,1141],{"class":283},"news",[174,1143,1118],{"class":188},[174,1145,216],{"class":188},[174,1147,1148],{"class":246}," render)\n",[174,1150,1151,1153,1155,1157,1160,1162,1164,1167,1169,1172],{"class":176,"line":225},[174,1152,345],{"class":344},[174,1154,890],{"class":246},[174,1156,256],{"class":188},[174,1158,1159],{"class":259},"emit",[174,1161,277],{"class":246},[174,1163,1118],{"class":188},[174,1165,1166],{"class":283},"x",[174,1168,1118],{"class":188},[174,1170,1171],{"class":246},") ",[174,1173,1174],{"class":235},"\u002F\u002F rejects: AccessDenied\n",[135,1176,1177,1180,1181,153,1183,153,1186,1189,1190,1193,1194,1197,1198,1201],{},[138,1178,1179],{},"Access::ReadOnly"," clients refuse ",[138,1182,1159],{},[138,1184,1185],{},"emitWithAck",[138,1187,1188],{},"ack"," and ",[138,1191,1192],{},"disconnect"," from every webview ",[631,1195,1196],{},"whatever the capabilities allow","; the permission sets only decide which commands a window may call at all. Server acks of a read-only client are not forwarded with an ",[138,1199,1200],{},"ackId"," answerable from JS; answer them in Rust.",[670,1203,54],{"id":1204},"errors",[135,1206,1207,1210,1211,153,1214,153,1217,153,1219,153,1222,153,1225,153,1227,153,1230,153,1233,153,1236,1239,1240,1243,1244,256],{},[138,1208,1209],{},"tauri_plugin_socketio::Error",": ",[138,1212,1213],{},"SocketIo(socketio_next::Error)",[138,1215,1216],{},"UnknownClient",[138,1218,566],{},[138,1220,1221],{},"AccessDenied",[138,1223,1224],{},"UnknownAck",[138,1226,596],{},[138,1228,1229],{},"UrlNotAllowed",[138,1231,1232],{},"TooManySubscriptions",[138,1234,1235],{},"NotConfigurable",[138,1237,1238],{},"InvalidOptions",". Webviews receive them as ",[138,1241,1242],{},"SocketIoError"," with the variant name as ",[138,1245,1246],{},"kind",[670,1248,1250],{"id":1249},"constants","Constants",[531,1252,1253,1266],{},[534,1254,1255],{},[537,1256,1257,1260,1263],{},[540,1258,1259],{},"Constant",[540,1261,1262],{},"Value",[540,1264,1265],{},"What",[547,1267,1268,1281,1294],{},[537,1269,1270,1275,1278],{},[552,1271,1272],{},[138,1273,1274],{},"ACK_TTL",[552,1276,1277],{},"2 min",[552,1279,1280],{},"how long a server ack waits for a webview's answer",[537,1282,1283,1288,1291],{},[552,1284,1285],{},[138,1286,1287],{},"MAX_SUBSCRIPTIONS_PER_WEBVIEW",[552,1289,1290],{},"64",[552,1292,1293],{},"subscriptions per webview",[537,1295,1296,1301,1304],{},[552,1297,1298],{},[138,1299,1300],{},"MAX_PENDING_ACKS_PER_WEBVIEW",[552,1302,1303],{},"256",[552,1305,1306],{},"unanswered server acks per webview and client; past that its own oldest is forgotten",[1308,1309,1310],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .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":170,"searchDepth":203,"depth":225,"links":1312},[1313,1314,1315],{"id":672,"depth":203,"text":673},{"id":1204,"depth":203,"text":54},{"id":1249,"depth":203,"text":1250},"[object Object]","md",null,{},{"title":80,"description":1321},{"app":1322},{"socketio()":1323},"connect, insert read-only clients, reserve ids, get, remove, subscribe.","D6H-KziBqkI3qBy8ZsCl-S_A7d5vMz6Oz8YokpYcj5g",[1326,1328],{"title":76,"path":77,"stem":78,"description":1327,"children":-1},"connect, attach, list and the Socket class of tauri-plugin-socketio-api.",{"title":84,"path":85,"stem":86,"description":1329,"children":-1},"The default and allow-read sets and one permission per command.",1795285663986]