jsonrpc-ws-proxy
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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

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:
    - python
    - python-langserver.py
    - --stdio
  go:
    - /usr/local/bin/go
    - langserver.go

The client would connect to ws://localhost/python to get a python language server

Usage:

npm install
npm run prepare
node dist/server.js --port 3000 --languageServers servers.yml

Package Sidebar

Install

npm i jsonrpc-ws-proxy

Weekly Downloads

251

Version

0.0.5

License

ISC

Unpacked Size

7.22 kB

Total Files

8

Last publish

Collaborators

  • wylieconlon