mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 06:20:02 -04:00
patch js in a better way, fix event loop logic
This commit is contained in:
parent
4af7f6a4a0
commit
fc32c7c1fb
8 changed files with 57 additions and 21 deletions
5
client/fragments/force_wsproxy.js
Normal file
5
client/fragments/force_wsproxy.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
/* INSERT
|
||||
var ?opts ?= ?undefined;
|
||||
*/
|
||||
var parts=addr.split("/");
|
||||
url = url + parts[0] + ":" + port;
|
9
client/fragments/silence_socket.js
Normal file
9
client/fragments/silence_socket.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
/* DELETE
|
||||
err\("__syscall_getsockname " ?\+ ?fd\);
|
||||
*/
|
||||
|
||||
|
||||
/* INSERT
|
||||
function _emscripten_console_error\(str\) {
|
||||
*/
|
||||
if (UTF8ToString(str).endsWith("__syscall_setsockopt\\n")) return;
|
4
client/fragments/wisp_support.js
Normal file
4
client/fragments/wisp_support.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
/* REPLACE
|
||||
new WebSocketConstructor
|
||||
*/
|
||||
new WispWebSocket
|
Loading…
Add table
Add a link
Reference in a new issue