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:
parent
cd80427cfe
commit
3e5be95a3c
|
@ -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>
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue