Skip to content

Events

Events

View as MarkdownPlain text source(opens in new tab)

Every message CoreX delivers over the WebSocket carries a stable `type` field. Branch on it to route each event to the right handler.

Every event arrives as a JSON message over the WebSocket. The first field is always type; branch on it in your handler. New fields may be added over time, so ignore unknown keys.

Connection

These describe the connection itself, not user activity.

TypeMeaning
resumedFirst message after the WebSocket upgrade; confirms your maxSubs
errorReturned for invalid client messages. See Errors

Posts

TypeFires when
postA tracked user posts
replyA tracked user replies
quoteA tracked user quotes a post
repostA tracked user reposts

Profiles

TypeFires when
new_followA tracked user follows someone
profile_updateA tracked user’s profile changes
privacy_changedA tracked user goes public, private, or becomes unavailable

Shared

deleted fires when a previously delivered post, reply, or quote is deleted. The wire mirrors the original event with type: "deleted".

Every event carries one or more Author objects. Events also carry media, articles, polls, and symbols when present.