Realtime API
Inline Realtime API is the full API surface over WebSocket RPC.
Endpoint
wss://api.inline.chat/realtime
TypeScript SDK
Use the TypeScript SDK for Bun, Node.js, and other JavaScript runtimes.
- Package:
@inline-chat/realtime-sdk
Install
Terminal
bun add @inline-chat/realtime-sdkQuick Start
TypeScript
import { InlineSdkClient } from "@inline-chat/realtime-sdk"
const client = new InlineSdkClient({
token: process.env.INLINE_TOKEN!,
})
await client.connect()
const me = await client.getMe()
console.log(me.userId)
await client.sendMessage({
chatId: 42,
text: "hello from TypeScript SDK",
})
await client.close()Use Cases
- Full client integrations
- Rich two-way bot interactions
- Live state sync and realtime updates
For Rust clients, agents, bridges, and CLI-style integrations, see Rust SDK.