Skip to content

web: Introduce RPC API#1116

Merged
ije merged 49 commits into
mainfrom
cli-im-command
Apr 6, 2025
Merged

web: Introduce RPC API#1116
ije merged 49 commits into
mainfrom
cli-im-command

Conversation

@ije

@ije ije commented Apr 6, 2025

Copy link
Copy Markdown
Member

The RPC API allows you to call server funtions without creating an api server.

Example:

// rpc.js

export async function foo() {
  return "bar"
}
// app.js

import { foo } from "./rpc.js" with { type: "rpc" }

await foo() // -> "bar"

@ije ije changed the title Introduce RPC API web: Introduce RPC API Apr 6, 2025
@ije ije merged commit c7527e7 into main Apr 6, 2025
@ije ije deleted the cli-im-command branch April 6, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant