[{"data":1,"prerenderedAt":827},["ShallowReactive",2],{"navigation":3,"\u002Fclient\u002Ferrors":129,"\u002Fclient\u002Ferrors-surround":822},[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":54,"body":131,"description":816,"extension":817,"links":818,"meta":819,"navigation":586,"path":55,"seo":820,"stem":56,"__hash__":821},"docs\u002F2.client\u002F6.errors.md",{"type":132,"value":133,"toc":812},"minimark",[134,155,160,352,356,544,801,808],[135,136,137,138,142,143,146,147,150,151,154],"p",{},"Every fallible call returns ",[139,140,141],"code",{},"socketio_next::Result\u003CT>"," with one ",[139,144,145],{},"Error"," type. It is ",[139,148,149],{},"#[non_exhaustive]",", ",[139,152,153],{},"Clone"," (errors can be stored in states and shared), and its messages never contain URLs or query values.",[156,157,159],"h2",{"id":158},"socketio-errors","socket.io errors",[161,162,163,176],"table",{},[164,165,166],"thead",{},[167,168,169,173],"tr",{},[170,171,172],"th",{},"Variant",[170,174,175],{},"When",[177,178,179,206,219,229,246,263,273,286,296,323,342],"tbody",{},[167,180,181,187],{},[182,183,184],"td",{},[139,185,186],{},"ConnectRejected { message, data }",[182,188,189,190,193,194,197,198,201,202,205],{},"the server's ",[139,191,192],{},"connect_error",": the namespace middleware called ",[139,195,196],{},"next(new Error(message))"," (",[139,199,200],{},"data"," is ",[139,203,204],{},"err.data","), or the namespace does not exist. Not retried.",[167,207,208,213],{},[182,209,210],{},[139,211,212],{},"ConnectTimeout(d)",[182,214,215,216],{},"handshake + upgrade + CONNECT took longer than ",[139,217,218],{},"timeout",[167,220,221,226],{},[182,222,223],{},[139,224,225],{},"IncompatibleServer",[182,227,228],{},"the server answered CONNECT without a session id: a Socket.IO v2 server",[167,230,231,236],{},[182,232,233],{},[139,234,235],{},"InvalidAuth(..)",[182,237,238,241,242,245],{},[139,239,240],{},"auth"," is not a JSON object, or ",[139,243,244],{},"auth_with"," panicked",[167,247,248,253],{},[182,249,250],{},[139,251,252],{},"NotConnected",[182,254,255,258,259,262],{},[139,256,257],{},"emit"," while disconnected (without ",[139,260,261],{},"buffer_while_disconnected",")",[167,264,265,270],{},[182,266,267],{},[139,268,269],{},"Closed",[182,271,272],{},"the client is closed",[167,274,275,280],{},[182,276,277],{},[139,278,279],{},"AckTimeout(d)",[182,281,282,283],{},"no ack within the timeout of ",[139,284,285],{},"emit_with_ack",[167,287,288,293],{},[182,289,290],{},[139,291,292],{},"Disconnected",[182,294,295],{},"the connection was lost before the ack arrived",[167,297,298,303],{},[182,299,300],{},[139,301,302],{},"ReservedEvent(name)",[182,304,305,306,150,309,150,311,150,314,150,317,150,320,262],{},"emitting a reserved name (",[139,307,308],{},"connect",[139,310,192],{},[139,312,313],{},"disconnect",[139,315,316],{},"disconnecting",[139,318,319],{},"newListener",[139,321,322],{},"removeListener",[167,324,325,339],{},[182,326,327,150,330,150,333,150,336],{},[139,328,329],{},"InvalidUrl",[139,331,332],{},"InvalidHeader",[139,334,335],{},"Json",[139,337,338],{},"Protocol",[182,340,341],{},"bad input, a JSON conversion, a packet that does not decode",[167,343,344,349],{},[182,345,346],{},[139,347,348],{},"Engine(engineio::Error)",[182,350,351],{},"the transport layer, below",[156,353,355],{"id":354},"engine-errors","Engine errors",[161,357,358,369],{},[164,359,360],{},[167,361,362,367],{},[170,363,364],{},[139,365,366],{},"engineio::Error",[170,368,175],{},[177,370,371,393,403,417,427,437,450,460,477,498,508,521],{},[167,372,373,378],{},[182,374,375],{},[139,376,377],{},"HttpStatus { status, message }",[182,379,380,381,384,385,388,389,392],{},"a non-200 answer; ",[139,382,383],{},"message"," is engine.io's ",[139,386,387],{},"{\"code\", \"message\"}"," error text, ",[139,390,391],{},"None"," for any other body",[167,394,395,400],{},[182,396,397],{},[139,398,399],{},"WebsocketClosed { code, reason }",[182,401,402],{},"the server or a proxy closed the websocket with a close frame",[167,404,405,410],{},[182,406,407],{},[139,408,409],{},"ProxyFailed(..)",[182,411,412,413,416],{},"the proxy refused the tunnel, or is not an ",[139,414,415],{},"http:\u002F\u002F"," proxy",[167,418,419,424],{},[182,420,421],{},[139,422,423],{},"Timeout(d)",[182,425,426],{},"a transport step timed out",[167,428,429,434],{},[182,430,431],{},[139,432,433],{},"PingTimeout",[182,435,436],{},"no ping within pingInterval + pingTimeout",[167,438,439,447],{},[182,440,441,150,444],{},[139,442,443],{},"UpgradeUnavailable",[139,445,446],{},"UpgradeFailed(..)",[182,448,449],{},"the websocket upgrade is not offered or the probe failed",[167,451,452,457],{},[182,453,454],{},[139,455,456],{},"InvalidHandshake(..)",[182,458,459],{},"not an Engine.IO v4 handshake (an Engine.IO v3 server says so)",[167,461,462,467],{},[182,463,464],{},[139,465,466],{},"TlsNotEnabled(..)",[182,468,469,472,473,476],{},[139,470,471],{},"https"," \u002F ",[139,474,475],{},"wss"," without a TLS feature",[167,478,479,484],{},[182,480,481],{},[139,482,483],{},"TlsProviderMissing",[182,485,486,487,490,491,494,495,262],{},"reqwest's ",[139,488,489],{},"rustls-no-provider"," is on and ",[139,492,493],{},"rustls"," is not (",[496,497,50],"a",{"href":51},[167,499,500,505],{},[182,501,502],{},[139,503,504],{},"InvalidTlsConfig(..)",[182,506,507],{},"the TLS configuration could not be built (bad PEM, unsupported protocol versions)",[167,509,510,518],{},[182,511,512,150,515],{},[139,513,514],{},"Http(..)",[139,516,517],{},"Websocket(..)",[182,519,520],{},"the underlying reqwest \u002F tungstenite error",[167,522,523,530],{},[182,524,525,150,527],{},[139,526,329],{},[139,528,529],{},"InvalidUrlScheme(..)",[182,531,532,533,150,536,150,538,541,542],{},"not ",[139,534,535],{},"http",[139,537,471],{},[139,539,540],{},"ws"," or ",[139,543,475],{},[545,546,551],"pre",{"className":547,"code":548,"language":549,"meta":550,"style":550},"language-rust shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use socketio_next::{Error, engineio};\n\nmatch client_builder.connect().await {\n    Ok(client) => { \u002F* ... *\u002F }\n    Err(Error::ConnectRejected { message, data, .. }) => eprintln!(\"refused: {message} {data:?}\"),\n    Err(Error::Engine(engineio::Error::HttpStatus { status, .. })) => eprintln!(\"HTTP {status}\"),\n    Err(err) => eprintln!(\"{err}\"),\n}\n","rust","",[139,552,553,581,588,614,641,708,768,795],{"__ignoreMap":550},[554,555,558,562,566,570,572,575,578],"span",{"class":556,"line":557},"line",1,[554,559,561],{"class":560},"sbssI","use",[554,563,565],{"class":564},"sBMFI"," socketio_next",[554,567,569],{"class":568},"sMK4o","::{",[554,571,145],{"class":564},[554,573,574],{"class":568},",",[554,576,577],{"class":564}," engineio",[554,579,580],{"class":568},"};\n",[554,582,584],{"class":556,"line":583},2,[554,585,587],{"emptyLinePlaceholder":586},true,"\n",[554,589,591,595,599,602,605,608,611],{"class":556,"line":590},3,[554,592,594],{"class":593},"s7zQu","match",[554,596,598],{"class":597},"sTEyZ"," client_builder",[554,600,601],{"class":568},".",[554,603,308],{"class":604},"s2Zo4",[554,606,607],{"class":568},"().",[554,609,610],{"class":593},"await",[554,612,613],{"class":568}," {\n",[554,615,617,620,623,626,628,631,634,638],{"class":556,"line":616},4,[554,618,619],{"class":564},"    Ok",[554,621,622],{"class":568},"(",[554,624,625],{"class":597},"client",[554,627,262],{"class":568},[554,629,630],{"class":568}," =>",[554,632,633],{"class":568}," {",[554,635,637],{"class":636},"sHwdD"," \u002F* ... *\u002F",[554,639,640],{"class":568}," }\n",[554,642,644,647,649,651,654,657,659,662,664,667,669,672,675,677,680,682,685,689,692,694,697,699,702,705],{"class":556,"line":643},5,[554,645,646],{"class":564},"    Err",[554,648,622],{"class":568},[554,650,145],{"class":564},[554,652,653],{"class":568},"::",[554,655,656],{"class":564},"ConnectRejected",[554,658,633],{"class":568},[554,660,661],{"class":597}," message",[554,663,574],{"class":568},[554,665,666],{"class":597}," data",[554,668,574],{"class":568},[554,670,671],{"class":568}," ..",[554,673,674],{"class":568}," })",[554,676,630],{"class":568},[554,678,679],{"class":604}," eprintln!",[554,681,622],{"class":568},[554,683,684],{"class":568},"\"",[554,686,688],{"class":687},"sfazB","refused: ",[554,690,691],{"class":568},"{",[554,693,383],{"class":687},[554,695,696],{"class":568},"}",[554,698,633],{"class":568},[554,700,701],{"class":687},"data:?",[554,703,704],{"class":568},"}\"",[554,706,707],{"class":568},"),\n",[554,709,711,713,715,717,719,722,724,727,729,731,733,736,738,741,743,745,748,750,752,754,756,759,761,764,766],{"class":556,"line":710},6,[554,712,646],{"class":564},[554,714,622],{"class":568},[554,716,145],{"class":564},[554,718,653],{"class":568},[554,720,721],{"class":604},"Engine",[554,723,622],{"class":568},[554,725,726],{"class":564},"engineio",[554,728,653],{"class":568},[554,730,145],{"class":564},[554,732,653],{"class":568},[554,734,735],{"class":564},"HttpStatus",[554,737,633],{"class":568},[554,739,740],{"class":597}," status",[554,742,574],{"class":568},[554,744,671],{"class":568},[554,746,747],{"class":568}," }))",[554,749,630],{"class":568},[554,751,679],{"class":604},[554,753,622],{"class":568},[554,755,684],{"class":568},[554,757,758],{"class":687},"HTTP ",[554,760,691],{"class":568},[554,762,763],{"class":687},"status",[554,765,704],{"class":568},[554,767,707],{"class":568},[554,769,771,773,775,778,780,782,784,786,789,791,793],{"class":556,"line":770},7,[554,772,646],{"class":564},[554,774,622],{"class":568},[554,776,777],{"class":597},"err",[554,779,262],{"class":568},[554,781,630],{"class":568},[554,783,679],{"class":604},[554,785,622],{"class":568},[554,787,788],{"class":568},"\"{",[554,790,777],{"class":687},[554,792,704],{"class":568},[554,794,707],{"class":568},[554,796,798],{"class":556,"line":797},8,[554,799,800],{"class":568},"}\n",[135,802,803,804,807],{},"See ",[496,805,58],{"href":806},"\u002Fclient\u002Fdebugging#troubleshooting"," for what to check for each error.",[809,810,811],"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 .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 .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 .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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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":550,"searchDepth":583,"depth":590,"links":813},[814,815],{"id":158,"depth":583,"text":159},{"id":354,"depth":583,"text":355},"One typed, cloneable Error; engine errors; what each one means.","md",null,{},{"title":54,"description":816},"XhFy-VAJgNpi6Dg0r19-7Yx_7hC-1S8dtFnY4SZNcsI",[823,825],{"title":50,"path":51,"stem":52,"description":824,"children":-1},"rustls or native-tls, private CAs, the operating system's trust store.",{"title":58,"path":59,"stem":60,"description":826,"children":-1},"tracing output, redaction, the packet inspector and a troubleshooting table.",1795285663832]