From 55fd362bc36b1ef568a4d019b2baf66ec968bdcf Mon Sep 17 00:00:00 2001 From: DMadhuranga Date: Fri, 3 Apr 2020 13:12:57 +0530 Subject: [PATCH] Fix example websocket endpoint 1. Fixed an issue in synapse config 2. Add additional details in command execution as windows has different syntax --- .../using-websocket-endpoints.md | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/en/micro-integrator/docs/use-cases/examples/endpoint_examples/using-websocket-endpoints.md b/en/micro-integrator/docs/use-cases/examples/endpoint_examples/using-websocket-endpoints.md index 51bf9ec6e..35e19e8b2 100644 --- a/en/micro-integrator/docs/use-cases/examples/endpoint_examples/using-websocket-endpoints.md +++ b/en/micro-integrator/docs/use-cases/examples/endpoint_examples/using-websocket-endpoints.md @@ -43,16 +43,14 @@ Create the sequence for client to backend mediation, sequence for the backend to ```xml tab='Sequence (Backend Mediation)' - - - - - - -
- - - + + + + + +
+ + ``` @@ -98,9 +96,15 @@ Starting the Websocket client: - Download the netty artifacts zip file from [here](https://github.com/wso2-docs/ESB) and extract it. The extracted folder will be shown as `ESB-master`. - Open a terminal, navigate to `ESB-master/ESB-Artifacts/Netty_artifacts_for_WebSocket_samples` and execute the following command to start the WebSocket server on port 8082: - ```bash + + If you are using Linux/MacOs, execute the following command: + ```bash java -cp netty-example-4.0.30.Final.jar:lib/*:. io.netty.example.http.websocketx.server.WebSocketServer ``` + If you are using Windows, execute the following command: + ```bash + java -cp netty-example-4.0.30.Final.jar;lib/*;. io.netty.example.http.websocketx.server.WebSocketServer + ``` If you analyze the log, you will see that an HTTP request is sent to the Websocket server, and that the Websocket server injects the response to