File tree Expand file tree Collapse file tree 6 files changed +1019
-155
lines changed Expand file tree Collapse file tree 6 files changed +1019
-155
lines changed Original file line number Diff line number Diff line change 102102 <script src="./node_modules/socket.io/client-dist/socket.io.js"></script>
103103 <script src="./index.js"></script>
104104 <script>
105- // const url = "https://g4o2-api.maxhu787.repl.co";
106- const url = "http://localhost:3000";
105+ const url = "https://g4o2-api.maxhu787.repl.co";
106+ // const url = "http://localhost:3000";
107107 const socket = io(url);
108108 const messages = document.getElementById('messages');
109109 const form = document.getElementById('message-form');
@@ -158,8 +158,6 @@ function escapeHtml(text) {
158158 data = JSON.parse(body);
159159 let username = data['username']
160160 let userconnect = `<p style=''>User ${username} connected</s>`;
161- // $("#chatcontent").append(userconnect);
162- // chatScroll();
163161 });
164162 })
165163
You can’t perform that action at this time.
0 commit comments