mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
ensure the emscripten websocket url is set properly
This commit is contained in:
parent
2be1e0cd4b
commit
9f033fc848
4 changed files with 8 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
# Libcurl.js Changelog:
|
# Libcurl.js Changelog:
|
||||||
|
|
||||||
|
## v0.6.10 (7/11/24):
|
||||||
|
- Fix a problem where the websocket URL wouldn't be set properly in some cases
|
||||||
|
|
||||||
## v0.6.9 (7/10/24):
|
## v0.6.9 (7/10/24):
|
||||||
- Fix a possible double free when requests get aborted
|
- Fix a possible double free when requests get aborted
|
||||||
- Handle `ReadableStream` objects as the request payload
|
- Handle `ReadableStream` objects as the request payload
|
||||||
|
|
|
@ -52,6 +52,7 @@ if [[ "$*" == *"release"* ]]; then
|
||||||
else
|
else
|
||||||
COMPILER_OPTIONS="$COMPILER_OPTIONS --profiling -g "
|
COMPILER_OPTIONS="$COMPILER_OPTIONS --profiling -g "
|
||||||
EMSCRIPTEN_OPTIONS="$EMSCRIPTEN_OPTIONS -sSTACK_OVERFLOW_CHECK=2"
|
EMSCRIPTEN_OPTIONS="$EMSCRIPTEN_OPTIONS -sSTACK_OVERFLOW_CHECK=2"
|
||||||
|
echo "note: this is a debug build"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$*" == *"asan"* ]]; then
|
if [[ "$*" == *"asan"* ]]; then
|
||||||
|
|
|
@ -43,9 +43,9 @@ function check_loaded(check_websocket) {
|
||||||
}
|
}
|
||||||
function set_websocket_url(url) {
|
function set_websocket_url(url) {
|
||||||
websocket_url = url;
|
websocket_url = url;
|
||||||
if (Module.websocket) {
|
if (typeof Module.websocket === "undefined")
|
||||||
Module.websocket.url = url;
|
Module.websocket = {};
|
||||||
}
|
Module.websocket.url = url;
|
||||||
if (!main_session && wasm_ready) {
|
if (!main_session && wasm_ready) {
|
||||||
setup_main_session();
|
setup_main_session();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "libcurl.js",
|
"name": "libcurl.js",
|
||||||
"version": "0.6.9",
|
"version": "0.6.10",
|
||||||
"description": "An experimental port of libcurl to WebAssembly for use in the browser.",
|
"description": "An experimental port of libcurl to WebAssembly for use in the browser.",
|
||||||
"main": "libcurl.mjs",
|
"main": "libcurl.mjs",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue