JSPM

jsonrpc-ws-proxy

0.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 114
  • Score
    100M100P100Q80381F
  • License ISC

Creates a web socket proxy for any number of language server processes

Package Exports

  • jsonrpc-ws-proxy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsonrpc-ws-proxy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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