You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -88,17 +53,39 @@ Simply select a test file (`*.spec.ts`), then go to the `Run & Debug` View (`Ctr
88
53
89
54
## Start & Debug
90
55
91
-
The example server can be launched with:
56
+
### Socket
57
+
58
+
To launch the server for TCP sockets use:
92
59
93
60
```console
94
61
yarn start
95
62
```
96
63
64
+
This starts a server that is listening on port 5007 for incoming client requests.
65
+
97
66
To debug you can use the `Debug workflow example GLSP Server` launch configuration.
98
-
This starts the example server in a dedicated process. To test the server you have to connect a workflow GLSP client that supports JSON-RPC via socket.
67
+
To test the server you have to connect a workflow GLSP client that supports JSON-RPC via socket.
99
68
We recommend to use the client provided by the [`glsp-integration`](https://github.com/eclipse-glsp/glsp-theia-integration#how-to-start-the-workflow-diagram-example-server-from-the-sources).
100
69
70
+
### Websocket
71
+
72
+
To launch the server for WebSockets use:
73
+
74
+
```console
75
+
yarn start:websocket
76
+
```
77
+
78
+
This starts a server that is listening on the `ws://localhost:8081/workflow` endpoint for incoming client requests.
79
+
80
+
To debug you can use the `Debug workflow example GLSP Server (Websocket)` launch configuration.
81
+
To test the server you have to connect a workflow GLSP client that supports JSON-RPC via WebSocket.
82
+
We recommend to use the standalone example provided by [`glsp-client`](https://github.com/eclipse-glsp/glsp-client/blob/master/README.md#how-to-start-the-workflow-diagram-example).
83
+
101
84
## More information
102
85
103
86
For more information, please visit the [Eclipse GLSP Umbrella repository](https://github.com/eclipse-glsp/glsp) and the [Eclipse GLSP Website](https://www.eclipse.org/glsp/).
104
87
If you have questions, please raise them in the [discussions](https://github.com/eclipse-glsp/glsp/discussions) and have a look at our [communication and support options](https://www.eclipse.org/glsp/contact/).
0 commit comments