@mercuryworkshop/epoxy-tls
Advanced tools
Comparing version 1.2.1 to 1.3.0
11
demo.js
@@ -13,3 +13,4 @@ import epoxy from "./pkg/epoxy-module-bundled.js"; | ||
should_tls_test, | ||
should_udp_test | ||
should_udp_test, | ||
should_reconnect_test, | ||
] = msg.data; | ||
@@ -201,2 +202,10 @@ console.log( | ||
await ws.close(); | ||
} else if (should_reconnect_test) { | ||
while (true) { | ||
try { | ||
await epoxy_client.fetch("https://httpbin.org/get"); | ||
} catch(e) {console.error(e)} | ||
log("sent req"); | ||
await (new Promise((res, _) => setTimeout(res, 500))); | ||
} | ||
} else { | ||
@@ -203,0 +212,0 @@ let resp = await epoxy_client.fetch("https://httpbin.org/get"); |
{ | ||
"name": "@mercuryworkshop/epoxy-tls", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "A wasm library for using raw encrypted tls/ssl/https/websocket streams on the browser", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3427766
16252