Chris4K commited on
Commit
c1cae92
·
verified ·
1 Parent(s): 885c512

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -63,7 +63,7 @@ html = """
63
 
64
  ws.onopen = function() {
65
  console.log("WebSocket connected!");
66
- socket.send("Hello AI!"); // Send message to backend once the connection is open.
67
  };
68
 
69
  ws.onmessage = function(event) {
@@ -72,7 +72,8 @@ html = """
72
 
73
  ws.onerror = function(error) {
74
  console.error("WebSocket Error: ", error);
75
- };
 
76
 
77
  </script>
78
  </body>
 
63
 
64
  ws.onopen = function() {
65
  console.log("WebSocket connected!");
66
+ ws.send("Hello AI!"); // Send message to backend once the connection is open.
67
  };
68
 
69
  ws.onmessage = function(event) {
 
72
 
73
  ws.onerror = function(error) {
74
  console.error("WebSocket Error: ", error);
75
+ };
76
+
77
 
78
  </script>
79
  </body>