mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 14:30:02 -04:00
i like safari too
This commit is contained in:
parent
da541e7330
commit
642b4a32cc
5 changed files with 5 additions and 5 deletions
|
@ -459,7 +459,7 @@ export function from_entries(entries){
|
|||
}
|
||||
|
||||
async function websocket_connect(url, protocols) {
|
||||
let wss = new (WebSocketStream ? WebSocketStream : WebSocketStreamPonyfill)(url, { protocols: protocols });
|
||||
let wss = new (typeof WebSocketStream !== "undefined" ? WebSocketStream : WebSocketStreamPonyfill)(url, { protocols: protocols });
|
||||
let {readable, writable} = await wss.opened;
|
||||
return {read: readable, write: writable};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue