bodhi-realtime-agent / ClientGatewayActor
Class: ClientGatewayActor
Defined in: src/runtime/actors/client-gateway-actor.ts:25
Lifecycle hooks + message handler for an actor.
Implements
Constructors
Constructor
new ClientGatewayActor(
id,sendMessage,clientSend,sessionActorId):ClientGatewayActor
Defined in: src/runtime/actors/client-gateway-actor.ts:30
Parameters
id
string
sendMessage
ActorSendFn
clientSend
sessionActorId
string
Returns
ClientGatewayActor
Properties
id
readonlyid:string
Defined in: src/runtime/actors/client-gateway-actor.ts:26
Unique actor identity.
Implementation of
Methods
onMessage()
onMessage(
envelope):Promise<void>
Defined in: src/runtime/actors/client-gateway-actor.ts:39
Handle one envelope. Called serially — no concurrent invocations.
Parameters
envelope
Returns
Promise<void>
Implementation of
resetNotificationState()
resetNotificationState():
void
Defined in: src/runtime/actors/client-gateway-actor.ts:182
Reset notification tracking (e.g., on session restart).
Returns
void