Skip to content

Commit 0c664cd

Browse files
added a badge
2 parents f488d87 + 61f4325 commit 0c664cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/ai-gateway/configuration/websockets-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The AI Gateway WebSockets API provides a single persistent connection, enabling
1010

1111
## When to use webSockets?
1212

13-
WebSockets are long-lived TCP connections that enable bi-directional, real-time communication between client and server. Unlike HTTP connections, which require repeated handshakes for each request, WebSocket maintains the connection, supporting continuous data exchange with reduced overhead. WebSockets are ideal for applications needing low-latency, real-time data, such as voice assistants.
13+
WebSockets are long-lived TCP connections that enable bi-directional, real-time communication between client and server. Unlike HTTP connections, which require repeated handshakes for each request, WebSockets maintain the connection, supporting continuous data exchange with reduced overhead. WebSockets are ideal for applications needing low-latency, real-time data, such as voice assistants.
1414

1515
## Key benefits
1616

@@ -90,7 +90,7 @@ ws.on("message", function incoming(message) {
9090
}
9191
```
9292

93-
## Example for streaming requests
93+
## Example streaming request
9494

9595
For streaming requests, AI Gateway sends an initial message with request metadata indicating the stream is starting:
9696

0 commit comments

Comments
 (0)