ApplesauceOS
Read Markdown ↗Download .md

C.close

Release a native session and invalidate its references.

js
client.close()

Arguments

No arguments.

Returns

No return value (undefined).

Example

js
const app = RemoteC.forApp("com.apple.Preferences");
app.close();

Notes

Shares ObjC session lifecycle. Closing/reconnecting either API invalidates both sets of references.

All JavaScript APIs · Automation playbook