fix tls socket, add documentation

This commit is contained in:
ading2210 2024-03-07 12:16:28 -05:00
parent 155d5ea5b6
commit 53a474430a
4 changed files with 125 additions and 46 deletions

View file

@ -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() {