From 1a0252be5de7872dbe314d1511f706a47d88d6b1 Mon Sep 17 00:00:00 2001 From: Sanat Gersappa Date: Sun, 5 Mar 2023 06:25:18 +0000 Subject: [PATCH 1/2] Change websocket server since the older one no longer exists --- websockets/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websockets/index.html b/websockets/index.html index c0cc255..080f244 100644 --- a/websockets/index.html +++ b/websockets/index.html @@ -19,7 +19,7 @@ }); // Create your WebSocket. -var socket = new WebSocket('wss://echo.websocket.org'); +var socket = new WebSocket('wss://ws.postman-echo.com/raw'); // When a command goes to the `sendMessage` port, we pass the message // along to the WebSocket. From 4fd5ad00f1fe21ab15b26cd0366f52a99ba779af Mon Sep 17 00:00:00 2001 From: Sanat Gersappa Date: Sun, 5 Mar 2023 06:25:55 +0000 Subject: [PATCH 2/2] Update the README to reflect the new websocket server --- websockets/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websockets/README.md b/websockets/README.md index 4bfd02c..7e1f66f 100644 --- a/websockets/README.md +++ b/websockets/README.md @@ -1,6 +1,6 @@ # WebSockets - [Live Demo](https://ellie-app.com/8yYgw7y7sM2a1) -This is a minimal example of how to connect to a WebSocket. It connects to `wss://echo.websocket.org` which just repeats whatever you say. +This is a minimal example of how to connect to a WebSocket. It connects to `wss://ws.postman-echo.com/raw` which just repeats whatever you say. ![Demo](demo.gif)