Skip to content

Commit 0bbd61d

Browse files
committed
updated urls
1 parent f87b360 commit 0bbd61d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

chat-app/frontend/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const fetchMessages = async () => {
2-
const url = "http://localhost:3000/messages"
2+
const url = "https://pp3psp4mxrlip4uxvmeb9cmv.hosting.codeyourfuture.io/messages"
33

44
try {
55
const response = await fetch(url);
@@ -49,7 +49,7 @@ const sendMessage = async () => {
4949
const name = document.getElementById("user").value.trim()
5050
const msg = document.getElementById("msg").value.trim()
5151

52-
const url = "http://localhost:3000/message"
52+
const url = "https://pp3psp4mxrlip4uxvmeb9cmv.hosting.codeyourfuture.io/message"
5353

5454
const res = await fetch(url, {
5555
method: "POST",
@@ -86,8 +86,8 @@ const showError = (msg) => {
8686
errorEl.style.color = "red";
8787
};
8888

89-
const ws = new WebSocket("ws://localhost:3000");
90-
89+
const ws = new
90+
WebSocket("wss://pp3psp4mxrlip4uxvmeb9cmv.hosting.codeyourfuture.io");
9191
ws.onmessage = (event) => {
9292
const data = JSON.parse(event.data);
9393

0 commit comments

Comments
 (0)