talon-rpc
v2.2.0
Published
RPC library for Talon
Downloads
26
Readme
Talon RPC server
File based RPC server compatible with the Talon community command client
Installation
npm install talon-rpc
Usage
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();
});