mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
i like safari too
This commit is contained in:
parent
da541e7330
commit
642b4a32cc
5 changed files with 5 additions and 5 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -683,7 +683,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "epoxy-client"
|
||||
version = "2.1.7"
|
||||
version = "2.1.8"
|
||||
dependencies = [
|
||||
"async-compression",
|
||||
"async-trait",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "epoxy-client"
|
||||
version = "2.1.7"
|
||||
version = "2.1.8"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@mercuryworkshop/epoxy-tls",
|
||||
"version": "2.1.7-1",
|
||||
"version": "2.1.8-1",
|
||||
"description": "A wasm library for using raw encrypted tls/ssl/tcp/udp/https/websocket streams on the browser",
|
||||
"scripts": {
|
||||
"build": "./build.sh"
|
||||
|
|
|
@ -635,7 +635,7 @@ impl EpoxyClient {
|
|||
} else {
|
||||
let response_stream = if !is_null_body(response.status().as_u16()) {
|
||||
let response_body = IncomingBody::new(response.into_body()).into_async_read();
|
||||
Some(asyncread_to_readablestream(Box::pin(response_body)))
|
||||
Some(asyncread_to_readablestream(Box::pin(response_body), self.buffer_size))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
|
@ -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