You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`connectionCount`: Number of active WebSocket connections to the agent
107
+
-`isActive`: Boolean indicating if the agent has any active connections
108
+
-`agentId`: The unique identifier of the agent instance (or `undefined` if not available)
109
+
110
+
This is useful for monitoring agent activity, implementing health checks, or determining if an agent should be kept alive or allowed to hibernate.
111
+
70
112
### Calling methods on Agents
71
113
72
114
When using `getAgentByName`, you can pass both requests (including WebSocket) connections and call methods defined directly on the Agent itself using the native [JavaScript RPC](/workers/runtime-apis/rpc/) (JSRPC) API.
0 commit comments