Overview
Theports channel provides real-time notifications when network ports open and close inside the workspace. This enables automatic preview URLs and port management without polling from the client.
How It Works
Aether continuously monitors for new listening ports inside the workspace. When a new port appears, the server emits anopen event and automatically makes it externally accessible. When a port stops listening, it emits a close event.
Ignored Ports
These ports are excluded from detection:| Port | Reason |
|---|---|
| 22 | SSH |
| 2222 | Internal SSH |
| 3001 | Reserved (internal) |
Server to Client Events
open
A new listening port was detected.
| Field | Type | Description |
|---|---|---|
port | integer | Port number |
pid | integer or null | Process ID of the listener |
process | string or null | Process name |
close
A port is no longer listening.
| Field | Type | Description |
|---|---|---|
port | integer | Port number that closed |
Client to Server Messages
kill
Terminate the process listening on a port.
| Field | Type | Required | Description |
|---|---|---|---|
port | integer | Yes | Port whose process should be terminated |
Preview URLs
When a port is detected, a preview URL is automatically available at:abc123 and the preview domain is preview.runaether.dev, a server on port 3000 would be accessible at:
open event is emitted.