From 7dec6980eb48e186c82d5d1c19c01dbe416dd647 Mon Sep 17 00:00:00 2001 From: Chris Dickinson Date: Tue, 20 Dec 2022 17:54:20 +0100 Subject: [PATCH] Add URL for index.html page for WebSocket sample Turns out the CORS is always enabled for WebSocket with SockJS. So, since we cannot predict an URL for the `index.html` therefore we always recommend open it on the same host port as server application - `http://localhost:8080` --- basic/web-sockets/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/web-sockets/README.md b/basic/web-sockets/README.md index 632ed9b9..a6beebc5 100644 --- a/basic/web-sockets/README.md +++ b/basic/web-sockets/README.md @@ -21,7 +21,7 @@ The `org.springframework.integration.samples.websocket.standard.client.Applicati ## Browser Client The `index.html` in the `src/main/resources/static` directory of this project demonstrates a JavaScript `SockJS` client, which connects -to our server and just prints its messages in the middle of page. +to our server and just prints its messages in the middle of page. It can be reached at http://localhost:8080/index.html. ## Test Case