Optional
options: { expose?: LocalAPI; serialization?: SerializationOptions }Calls a constructor on the remote API
The name of the constructor to call
Arguments to pass to the remote constructor
Promise that resolves with the constructed instance
Calls a method on the remote API
The name of the method to call
Arguments to pass to the remote method
Promise that resolves with the result of the remote call
Exposes a local API implementation that can be called remotely
The local API implementation to expose
Frees up memory by clearing stored callbacks and callback cache Useful when dealing with many anonymous callback functions to prevent memory leaks
Returns a proxy object that represents the remote API Methods called on this proxy will be executed on the remote endpoint
Proxy object representing the remote API
Gets a property value from the remote API
The property path (dot notation string or array)
Promise that resolves with the property value
Sets a property value on the remote API
The property path (dot notation string or array)
The value to set
Promise that resolves when the property is set
A bidirectional Stdio IPC channel in RPC style. This allows 2 JS/TS processes to call each other's API like using libraries in RPC style, without needing to deal with
argv
,stdin
,stdout
directly.