Skip to content

Commit 0e5201e

Browse files
committed
more ws service stuff
1 parent 4c1c36b commit 0e5201e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cli/src/server/socketio/WebSocketService.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,9 @@ export class WebSocketService extends EventEmitter implements IWebSocketService
421421
* Start monitoring memory for new messages
422422
*/
423423
private async startMemoryMonitoring() {
424-
logger.info(`[WebSocket] Starting memory monitoring for agent ${this.runtime!.agentId}`);
424+
if (!this.runtime) return;
425+
426+
logger.info(`[WebSocketService] Starting memory monitoring for agent ${this.runtime.agentId}`);
425427
// Implementation would depend on your memory architecture
426428
// For example, you might poll the database or set up a subscription
427429
}

0 commit comments

Comments
 (0)