-
-
Save Milek7/5b8c9f61fec5e28a2e249269b654b93d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/library_sockfs.js b/src/library_sockfs.js | |
index 86f8605..a512b4d 100644 | |
--- a/src/library_sockfs.js | |
+++ b/src/library_sockfs.js | |
@@ -180,6 +180,9 @@ mergeInto(LibraryManager.library, { | |
if ('string' === typeof Module['websocket']['url']) { | |
url = Module['websocket']['url']; // Fetch runtime WebSocket URL config. | |
} | |
+ if ('function' === typeof Module['websocket']['url']) { | |
+ url = Module['websocket']['url'](addr, port); // Fetch runtime WebSocket URL config. | |
+ } | |
} | |
if (url === 'ws://' || url === 'wss://') { // Is the supplied URL config just a prefix, if so complete it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment