Hello
The player sends a message.
Function then it exits
Your function answers and exits.
Answer
The reply uses the same socket.
AI WebSocket Gateway

The socket stays open.

Your players stay connected. Your function can return. A game, app, or device opens one WebSocket. A function on Vercel, Cloudflare, or AWS Lambda cannot hold that connection. XStreamIO holds it. Every message is posted to your HTTPS webhook. Your function answers and exits. The player gets the reply on the same socket.

You keep the AI and the product. XStreamIO keeps the connection.

  1. 1 Create a free account. No card. You get a project on the live API.
  2. 2 Point the relay at your webhook. One POST to https://aponteplace.io/v1/relay turns relay mode on. The webhook has to be https.
  3. 3 The game connects. It uses wss://aponteplace.io/ws and a player token minted on your server. The server key stays there.
  4. 4 You answer on the same socket. A player message arrives as message.received. POST /v1/push sends the reply back.
Free 2,000 Relayed messages a month. No card.
Starter $29 / month 100,000 relayed messages.
Pro $99 / month 2,000,000 relayed messages.

Self-host is $299 once. Studio is $499 once. Both use the Pro relay limit. The same account covers the higher plans.

Start on the free plan

Register, copy the project, and turn the relay on. The first 2,000 messages are free.

Create a free account
session.open
message.received
session.close

Those three events are what your webhook receives. Questions go to help@xstreamio.com.

Where it fits

Same socket. The work on your side can finish.

A game with an AI

The player stays in the match. Each line is posted to your webhook. You push the answer back.

An assistant in your app

Someone types a question. A function on Vercel, Cloudflare, or Lambda writes the reply and returns. The chat stays open.

A device that stays connected

One socket stays up. The function does the work and exits. The device is still there for the next message.

Want us to contact you?

Leave your name, a way to reach you, and your question.