| … | … | @@ -182,7 +182,7 @@ $ python3 |
| 182 | 182 | > opencog.cogserver.startCogserver() |
| 183 | 183 | </pre> |
| 184 | 184 | <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> | |
| 186 | 186 | </div> |
| 187 | 187 | <h2>Interact</h2> |
| 188 | 188 | <p> |
| … | … | @@ -49,7 +49,7 @@ |
| 49 | 49 | let testQueue = []; |
| 50 | 50 | |
| 51 | 51 | // 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`; | |
| 53 | 53 | |
| 54 | 54 | function addLog(message, type = 'info') { |
| 55 | 55 | const entry = document.createElement('div'); |
| … | … | @@ -49,7 +49,7 @@ function setup() |
| 49 | 49 | connectButton.addEventListener('click', changeConnection); |
| 50 | 50 | |
| 51 | 51 | // Initial server and endpoint - use current hostname. |
| 52 | server = `ws://${window.location.hostname}:18080/`; | |
| 52 | server = `ws://${window.location.hostname}:${window.location.port}/`; | |
| 53 | 53 | endpoint = 'json'; |
| 54 | 54 | serverURL = server + endpoint; |
| 55 | 55 |