aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library_sockfs.js2
-rw-r--r--src/settings.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/library_sockfs.js b/src/library_sockfs.js
index 712c6d85..3f758e5c 100644
--- a/src/library_sockfs.js
+++ b/src/library_sockfs.js
@@ -131,7 +131,7 @@ mergeInto(LibraryManager.library, {
port = parseInt(result[2], 10);
}
} else {
- // Create the actual websocket object and connect.
+ // create the actual websocket object and connect
try {
// runtimeConfig gets set to true if WebSocket runtime configuration is available.
var runtimeConfig = (Module['websocket'] && ('object' === typeof Module['websocket']));
diff --git a/src/settings.js b/src/settings.js
index 93f141ba..04571e8a 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -221,7 +221,8 @@ var SOCKET_WEBRTC = 0; // Select socket backend, either webrtc or websockets.
// Module['websocket'] = {subprotocol: 'base64, binary, text'};
// Module['websocket'] = {url: 'wss://', subprotocol: 'base64'};
// Run time configuration may be useful as it lets an application select multiple different services.
-var WEBSOCKET_URL = 'ws://'; // A string containing either a WebSocket URL prefix (ws:// or wss://) or a complete URL.
+var WEBSOCKET_URL = 'ws://'; // A string containing either a WebSocket URL prefix (ws:// or wss://) or a complete
+ // RFC 6455 URL - "ws[s]:" "//" host [ ":" port ] path [ "?" query ].
// In the (default) case of only a prefix being specified the URL will be constructed from
// prefix + addr + ':' + port
// where addr and port are derived from the socket connect/bind/accept calls.