Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Insert server rpc methods into svelte app
import App from "./App.svelte";
import { remote } from "./remote-rpc.js"; // rpc methods are proxied here
const app = new App({
target: document.body,
props: { methods: remote }, // available as methods.getAnswer() becasue of this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment