Skip to content

Aldin-SXR/jsonrpc-ws-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust web socket proxy for language servers

Sets up a websocket proxy for any number of language servers.

Ported from wylieconlon/jsonrpc-ws-proxy (Node.js) to Rust.

Each server is run as a subprocess which is connected to by sending the client to the URL / based on a configuration file defined locally. For example, with the following defined as servers.yml:

langservers:
  python:
    - pylsp
  java:
    - /bin/jdtls
    - -configuration
    - /config_linux
  cpp:
    - /usr/bin/clangd

The client could connect to ws://localhost:3000/python to get a Python language server (the default port is 3000).

Usage:

cargo run --release -- --languageServers servers.yaml --port 3000

or

cargo build --release
target/release/lsp-proxy --languageServers servers.yaml --port 3000

About

A Rust web socket interface for running language servers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages