SSLive

Real-time TLS certificate monitoring with Bun & MongoDB

Total Domains 0
Valid (OK) 0
Warning 0
Critical 0
Expired 0
Error 0

Add new domain

Integration & WebSockets

View documentation

What are these WebSockets?

This service exposes a real-time WebSocket server that broadcasts events to all connected client applications. Whenever an SSL certificate's validation status is added, deleted, or updated, the server emits an immediate notification. This allows you to build reactive dashboards, integrate automated alerting systems, or send instant reports.

Emitted Events (JSON Payload)

1. Domain Added (added)
{
  "type": "added",
  "data": {
    "domain": "ejemplo.com",
    "status": "PENDING",
    "addedAt": "2026-06-05T16:00:00.000Z"
  }
}
2. Certificate Updated (updated)
{
  "type": "updated",
  "data": {
    "domain": "ejemplo.com",
    "status": "OK", // o WARNING, CRITICAL, EXPIRED, ERROR
    "days": 45,
    "expires": "2026-07-20 23:59:59 UTC",
    "lastChecked": "2026-06-05T16:05:00.000Z"
  }
}
3. Domain Deleted (deleted)
{
  "type": "deleted",
  "domain": "ejemplo.com"
}

JavaScript Connection Example

const socket = new WebSocket(`ws://${window.location.host}/ws`);

socket.onopen = () => console.log("Conectado a los sockets");

socket.onmessage = (event) => {
  const eventData = JSON.parse(event.data);
  console.log("Nuevo mensaje:", eventData);
  
  if (eventData.type === "updated") {
    console.log(`Dominio ${eventData.data.domain} está ${eventData.data.status}`);
  }
};

Loading domains...

Establishing connection to the server and loading database.