OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-cogserver commits / 75eb495

Fix borken port number in the demo pages
75eb49592853b62a84276306e14b70c3121bc0cf
by Linas Vepstas <linasvepstas@gmail.com> · 2026-01-17T01:47:41.000Z

Changed files (3) +3 -3

examples/websockets/demo.html +1 -1
……@@ -182,7 +182,7 @@ $ python3
182182> opencog.cogserver.startCogserver()
183183</pre>
184184 <p>Take a moment to visit the stats page at
185 <a href="http://localhost:18080/stats">http://localhost:18080/stats</a>.</p>
185 <a href="stats">the stats page</a>.</p>
186186 </div>
187187 <h2>Interact</h2>
188188 <p>
examples/websockets/json-test.html +1 -1
……@@ -49,7 +49,7 @@
4949 let testQueue = [];
5050
5151 // Set default URL to current hostname
52 urlInput.value = `ws://${window.location.hostname}:18080/json`;
52 urlInput.value = `ws://${window.location.hostname}:${window.location.port}/json`;
5353
5454 function addLog(message, type = 'info') {
5555 const entry = document.createElement('div');
examples/websockets/script.js +1 -1
……@@ -49,7 +49,7 @@ function setup()
4949 connectButton.addEventListener('click', changeConnection);
5050
5151 // Initial server and endpoint - use current hostname.
52 server = `ws://${window.location.hostname}:18080/`;
52 server = `ws://${window.location.hostname}:${window.location.port}/`;
5353 endpoint = 'json';
5454 serverURL = server + endpoint;
5555