1. Install the RivetKit JavaScript client using `npm install rivetkit@2.0.42-rc.1`.
2. Create a client instance using `createClient()`.
3. Get or create an actor handle using `client.actorName.getOrCreate(['key'])`.
4. Call actions on the actor handle using `handle.actionName(params)`.
5. Subscribe to events using `handle.connect().on('eventName', callback)`.
6. Handle errors using `try...catch` blocks and `ActorError`.
7. Manage the connection lifecycle using `conn.onOpen()`, `conn.onClose()`, and `conn.dispose()`.