Fix JS to work with new WS URL
This commit is contained in:
parent
5c99ee71e3
commit
bcdbcef636
@ -42,7 +42,7 @@ fn index() -> Html<&'static str> {
|
||||
sendForm.hidden = false;
|
||||
msgsArea.hidden = false;
|
||||
msgInput.focus();
|
||||
ws = new WebSocket("ws://127.0.0.1:3000/ws/" + nameInput.value);
|
||||
ws = new WebSocket("ws://127.0.0.1:2000/api/ws/" + nameInput.value);
|
||||
ws.onmessage = function(event) {
|
||||
msgsArea.value += event.data + "\r\n";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user