-
Hello, I'm exploring the Requirement: To connect a monaco-editor (react app) with a language server provided by xtext via servlets (Completely use HTTP requests instead of websocket connection). Progress: Currently exploring these files There is an implementation of connecting via websockets. I was wondering if it is possible to eliminate the websockets and tune the code to make it work via https requests. Doubts: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @GSri30 you have to implement it yourself. But you can just write someting the implements the and web worker messages: So the way forward starts with implementing an |
Beta Was this translation helpful? Give feedback.
Hi @GSri30 you have to implement it yourself. But you can just write someting the implements the
MessageReader
andMessageWriter
interfaces. We currently use two different ones in our examples:jsonrpc over websocket:
https://github.com/TypeFox/monaco-languageclient/blob/main/packages/vscode-ws-jsonrpc/src/socket/reader.ts
https://github.com/TypeFox/monaco-languageclient/blob/main/packages/vscode-ws-jsonrpc/src/socket/writer.ts
used here:
https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/main/src/common.ts#L44-L58
and web worker messages:
https://github.com/microsoft/vscode-languageserver-node/blob/main/jsonrpc/src/browser/main.ts (web worker)
used here:
https:/…