Skip to main content

electron/services/monitoring/PortMonitor

TCP port monitoring service for network connectivity health checks.

Remarks

Provides port monitoring capabilities for TCP endpoints with configurable timeouts and retry logic.

Example

const portMonitor = new PortMonitor({ timeout: 5000 });
const result = await portMonitor.check({
id: "mon_1",
type: "port",
host: "example.com",
port: 443,
status: "pending",
// ... other monitor properties
});
logger.info(
`Status: ${result.status}, Response time: ${result.responseTime}ms`
);

See

Classes