Create a runtime instance with dependency injection via hooks.
Host application provides relay pool, auth, config, etc.
A Runtime instance ready to handle napplet messages
const runtime = createRuntime(hooks);// On incoming message from napplet:runtime.handleMessage(windowId, { type: 'relay.req', id: 'sub1', filters: [] }); Copy
const runtime = createRuntime(hooks);// On incoming message from napplet:runtime.handleMessage(windowId, { type: 'relay.req', id: 'sub1', filters: [] });
Create a runtime instance with dependency injection via hooks.