An open API service indexing awesome lists of open source software.

https://github.com/cursorless-dev/talon-rpc

RPC library for Talon
https://github.com/cursorless-dev/talon-rpc

Last synced: 7 months ago
JSON representation

RPC library for Talon

Awesome Lists containing this project

README

          

# Talon RPC server

File based RPC server compatible with the Talon community command client

## Installation

`npm install talon-rpc`

## Usage

```js
import { NodeIo, TalonRpcServer } from "talon-rpc";

function runCommand(commandId, args, options) {
// Do something
}

const io = new NodeIo("vscode-command-server");
const rpc = new TalonRpcServer(io, runCommand);

await io.initialize();

onKeypress(async () => {
await rpc.executeRequest();
});
```