> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Gateway Client Protocol • AI Agent SDK

> GatewayClientProtocol: Protocol for gateway client connections.

# GatewayClientProtocol

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

Protocol for gateway client connections.

Clients are external connections (WebSocket, HTTP, etc.)
that communicate with agents through the gateway.

## Methods

<CardGroup cols={2}>
  <Card title="client_id()" icon="function" href="../functions/GatewayClientProtocol-client_id">
    Unique client identifier.
  </Card>

  <Card title="is_connected()" icon="function" href="../functions/GatewayClientProtocol-is_connected">
    Whether the client is currently connected.
  </Card>

  <Card title="connected_at()" icon="function" href="../functions/GatewayClientProtocol-connected_at">
    Connection timestamp.
  </Card>

  <Card title="send()" icon="function" href="../functions/GatewayClientProtocol-send">
    Send an event to the client.
  </Card>

  <Card title="receive()" icon="function" href="../functions/GatewayClientProtocol-receive">
    Receive an event from the client.
  </Card>

  <Card title="close()" icon="function" href="../functions/GatewayClientProtocol-close">
    Close the client connection.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L220">
  `praisonaiagents/gateway/protocols.py` at line 220
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Gateway Feature" icon="tower-broadcast" href="/docs/features/gateway" />
</CardGroup>
