Skip to Content
DocumentationAPI ReferenceWebSocket Endpoints

WebSocket Endpoints

Real-time streaming endpoints for logs, metrics, terminal access, and notifications.

Authentication

WebSocket connections authenticate via a token query parameter:

wss://plane.lnchr.cloud/<tenant>/ws/applications/:id/logs?token=<jwt>

Endpoints

EndpointDescription
/ws/deployments/:id/logsLive deployment build logs
/ws/applications/:id/logsLive application runtime logs
/ws/applications/:id/trafficLive application traffic metrics
/ws/databases/:id/logsLive database logs
/ws/servers/:id/metricsLive server metrics (CPU, memory, disk)
/ws/terminal/:sessionIdInteractive terminal session
/ws/notificationsReal-time in-app notifications
/ws/logsUnified log stream (multi-resource)

Usage Example

const ws = new WebSocket( 'wss://plane.lnchr.cloud/<tenant>/ws/applications/<id>/logs?token=<jwt>' ); ws.onmessage = (event) => { const log = JSON.parse(event.data); console.log(log.message); };

Terminal Sessions

To use the interactive terminal:

  1. Create a session via the REST API:
    POST /api/v1/applications/:id/terminal POST /api/v1/databases/:id/terminal POST /api/v1/servers/:id/terminal
  2. Connect to the WebSocket using the returned sessionId:
    /ws/terminal/:sessionId

Terminal sessions support full PTY with resize events.

Last updated on