mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
bypatrol wisp detector bypass 9000 working 2024
This commit is contained in:
parent
7535ef8f48
commit
7c9605474d
2 changed files with 47 additions and 50 deletions
|
@ -78,10 +78,7 @@ pub enum EpoxyError {
|
||||||
#[error("Webpki: {0:?} ({0})")]
|
#[error("Webpki: {0:?} ({0})")]
|
||||||
Webpki(#[from] webpki::Error),
|
Webpki(#[from] webpki::Error),
|
||||||
|
|
||||||
#[error("Wisp WebSocket failed to connect")]
|
#[error("Wisp transport: {0}")]
|
||||||
WebSocketConnectFailed,
|
|
||||||
|
|
||||||
#[error("Custom wisp transport: {0}")]
|
|
||||||
WispTransport(String),
|
WispTransport(String),
|
||||||
#[error("Invalid Wisp transport")]
|
#[error("Invalid Wisp transport")]
|
||||||
InvalidWispTransport,
|
InvalidWispTransport,
|
||||||
|
|
|
@ -459,7 +459,7 @@ export function from_entries(entries){
|
||||||
}
|
}
|
||||||
|
|
||||||
async function websocket_connect(url, protocols) {
|
async function websocket_connect(url, protocols) {
|
||||||
let wss = new WebSocketStreamPonyfill(url, { protocols: protocols });
|
let wss = new (WebSocketStream ? WebSocketStream : WebSocketStreamPonyfill)(url, { protocols: protocols });
|
||||||
let {readable, writable} = await wss.opened;
|
let {readable, writable} = await wss.opened;
|
||||||
return {read: readable, write: writable};
|
return {read: readable, write: writable};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue