Skip to content

Commit 7dc3014

Browse files
MangoIVsoulomoon
authored andcommitted
[feat] websockets (#620)
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 c7fec94 commit 7dc3014

File tree

2 files changed

+232
-57
lines changed

2 files changed

+232
-57
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)