socketsupply / socket-examples

Socket Runtime Examples – see how your favorite front-end framework is used to build cross platform UIs
https://socketsupply.co/guides
MIT License
110 stars 12 forks source link

add node + preact example #45

Closed nichoth closed 1 year ago

nichoth commented 1 year ago

Add an example demonstrating how to call a node API from the browser-side code.

In main, we setup an RPC system similar to in serverless-studio.

system.receive = async (command, value) => {