| Previous | 199869 Revisions | Next |
| r25370 Thursday 19th September, 2013 at 00:27:16 UTC by R. Belmont |
|---|
| web: fixed hardcoded hostname and port in index.html. [Firehawke] |
| [web] | index.html |
| r25369 | r25370 | |
|---|---|---|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | function startWebSocket() { |
| 83 | var url = 'ws://localhost:8080/foo'; | |
| 83 | var docbase = window.location.href.toString(); | |
| 84 | var url = docbase.replace("http://","ws://"); | |
| 84 | 85 | websocket = new WebSocket(url); |
| 85 | 86 | websocket.onopen = function(ev) { |
| 86 | 87 | writeToScreen('<b style="color: green;">Connected</b>'); |
| Previous | 199869 Revisions | Next |