get
https://live-blogs.cortextech.io/v1/live-blogs
Upgrades the HTTP connection to a WebSocket for receiving real-time live blog events.
Authentication uses the short-lived JWT obtained from POST /v1/token, passed as the token query parameter (defined by the shortLivedToken security scheme).
If a timestamp is provided, the server replays all matching Redis stream messages from that point before emitting live events, enabling seamless reconnection after a drop.
Server → Client message topics:
| Topic | Description | Payload |
|---|---|---|
ping | Keep-alive ping; client must reply with pong | none |
reconnect | Server is shutting down gracefully; client should reconnect | none |
activity | Viewer count update | { "viewers": <integer|null> } |
blog-update | Live blog metadata was updated | event payload from Redis stream |
blog-delete | Live blog was deleted | event payload from Redis stream |
post-create | A post was created | event payload from Redis stream |
post-update | A post was updated | event payload from Redis stream |
post-delete | A post was deleted | event payload from Redis stream |
Client → Server message topics:
| Topic | Description |
|---|---|
pong | Response to server ping. Prevents idle timeout. |
All WebSocket messages use the shape { "topic": "<topic>", "payload": <object> }. Unknown client topics cause the server to close the connection.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
101WebSocket connection established. The HTTP connection is upgraded to the WebSocket protocol.
