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();
// createSocket("ws://facerec.cmusatyalab.org:9000", "CMU");
createSocket("ws:127.0.0.1:9000", "Local");
createSocket("ws:" + window.location.hostname + ":9000", "Local");
</script>
</html>

View File

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