mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
fix tls socket, add documentation
This commit is contained in:
parent
155d5ea5b6
commit
53a474430a
4 changed files with 125 additions and 46 deletions
|
@ -193,12 +193,9 @@ async function libcurl_fetch(url, params={}) {
|
|||
|
||||
function set_websocket_url(url) {
|
||||
websocket_url = url;
|
||||
if (!Module.websocket && ENVIRONMENT_IS_WEB) {
|
||||
document.addEventListener("libcurl_load", () => {
|
||||
set_websocket_url(url);
|
||||
});
|
||||
if (Module.websocket) {
|
||||
Module.websocket.url = url;
|
||||
}
|
||||
else Module.websocket.url = url;
|
||||
}
|
||||
|
||||
function get_version() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue