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
- Host: GitHub
- URL: https://github.com/cursorless-dev/talon-rpc
- Owner: cursorless-dev
- License: mit
- Created: 2024-12-29T08:25:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-28T18:45:22.000Z (12 months ago)
- Last Synced: 2025-06-18T04:59:52.470Z (7 months ago)
- Language: TypeScript
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
});
```