PLEXICHATNarrative Docs
Index
Guides, route-group overviews, and live schema entry points for the Plexichat backend.
REST http://api.plexichat.com/api/v1Gateway ws://api.plexichat.com/gatewayVersion a.1.0-49
WebSocket Gateway
The Plexichat gateway delivers real-time events and accepts client-side signaling such as heartbeats, identify, presence updates, typing, and voice messages.
Gateway URL
ws://api.plexichat.com/gateway
Core Lifecycle
- connect to the gateway
- receive
HELLO - send
IDENTIFYwith a session or bot token - heartbeat on the provided interval
- consume
DISPATCHevents such asREADY,MESSAGE_CREATE, andPRESENCE_UPDATE - resume or reconnect when the connection is interrupted
Payload Shape
Gateway payloads use the familiar structure:
{"op":0,"d":{},"s":1,"t":"EVENT_NAME"}
| Field | Meaning |
|---|---|
op | opcode |
d | event or command data |
s | sequence number on dispatch payloads |
t | dispatch event type when op is DISPATCH |
Code-Defined Opcode Families
- core opcodes such as
HELLO,IDENTIFY,HEARTBEAT,RESUME,INVALID_SESSION - Plexichat status opcodes such as
SERVER_STATUSandVERSION_CHECK - voice signaling opcodes such as
VOICE_CONNECTandVOICE_ICE_CANDIDATE - typing opcodes
TYPING_STARTandTYPING_STOP
See Connection, Events, Intents, Opcodes, and Close Codes for details.