webfast 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,7 +164,6 @@ web.fast.connectWebSocket = function(socketURL,maxRetries = 40, retries = 0) {
|
|
164
164
|
}
|
165
165
|
|
166
166
|
// Call the function to start the WebSocket connection
|
167
|
-
web.fast.connectWebSocket(socketURL);
|
168
167
|
web.fast.receive = function(data,message) {
|
169
168
|
// Placeholder for processing the received data
|
170
169
|
// Implement your logic here (e.g., update UI, handle specific messages)
|
@@ -303,4 +302,7 @@ jQuery(document).ready(function() {
|
|
303
302
|
console.error(`No Action for : ${elementType}`);
|
304
303
|
}
|
305
304
|
});
|
305
|
+
|
306
|
+
// Connect to websocket
|
307
|
+
web.fast.connectWebSocket(socketURL);
|
306
308
|
});
|