Skip to Content
ANTICEILDOCS
Anticeil Chat

Real-Time WebSocket Protocol

Bidirectional event schema for custom bots, clients, and integrations.

Anticeil Chat clients connect to the WebSocket endpoint at /api/socket.io with Bearer token authentication.

Connection Lifecycle

import { io } from 'socket.io-client';

const socket = io('https://app.anticeil.com', {
  path: '/api/socket.io',
  transports: ['websocket'],
  auth: {
    token: 'USER_JWT_TOKEN'
  }
});

socket.on('connect', () => {
  console.log('Connected to Anticeil Real-Time Gateway:', socket.id);
});

Standard Events

Client -> Server

  • send_message: { channelId: string, content: string, attachments?: string[] }
  • typing_start: { channelId: string }
  • join_channel: { channelId: string }
  • leave_channel: { channelId: string }

Server -> Client

  • message_created: Broadcasts newly posted message object to channel subscribers.
  • user_typing: Emits typing indicator with username and timeout.
  • presence_update: Informs client of friend or colony member online/idle/offline status.

On this page