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