Skip to content

Commit a97a845

Browse files
committed
[feat] websockets
Allow the user to set up an lsp server that talks to the user using the websocket protocol instead of standard IO and do enough refactoring to make the setup with websockets possible Whenever a new message arrives on the websocket, push the new message as well as an empty message as the followup - additionally, do not throw an error when the parser encounters an empty ByteString, it should be able to handle that by itself. Link the lspAsync to cascade a dead server to its sockets
1 parent db3ffce commit a97a845

File tree

2 files changed

+221
-55
lines changed

2 files changed

+221
-55
lines changed

lsp/lsp.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ library
7979
, unliftio ^>=0.2
8080
, unliftio-core ^>=0.2
8181
, unordered-containers ^>=0.2
82+
, websockets ^>=0.13
8283

8384
executable lsp-demo-reactor-server
8485
import: warnings

0 commit comments

Comments
 (0)