Web demo: Assume the HTTP and WebSocket servers are the same so the web demo works in Docker without any modifications.

This commit is contained in:
Brandon Amos 2015-12-23 18:42:24 -05:00
parent cd80427cfe
commit 3e5be95a3c
2 changed files with 2 additions and 2 deletions

View File

@ -234,6 +234,6 @@ limitations under the License.
redrawPeople(); redrawPeople();
// createSocket("ws://facerec.cmusatyalab.org:9000", "CMU"); // createSocket("ws://facerec.cmusatyalab.org:9000", "CMU");
createSocket("ws:127.0.0.1:9000", "Local"); createSocket("ws:" + window.location.hostname + ":9000", "Local");
</script> </script>
</html> </html>

View File

@ -329,7 +329,7 @@ function changeServerCallback() {
case "Local": case "Local":
socket.close(); socket.close();
redrawPeople(); redrawPeople();
createSocket("ws:127.0.0.1:9000", "Local"); createSocket("ws:" + window.location.hostname + ":9000", "Local");
break; break;
case "CMU": case "CMU":
socket.close(); socket.close();