DevtoolsHub
classCentral WebSocket hub that brokers messages between Yoltra stores and DevTools extensions.
- Accepts WS connections, validates protocol handshakes, and routes messages.
- Store events are fan-out to all extension clients.
- Extension commands are routed to the target store by
storeId.
- Maintains a ring buffer of recent events for late-connecting extensions.
- Binds to localhost only (v1 security).Constructor
constructor
Create a new DevTools hub instance.
Properties
| Name | Type | Description |
|---|---|---|
extensionCountget/set | number | |
historySizeget/set | number | |
storeCountget/set | number |
Methods
static probe
Check if a DevTools hub is already running on the given port.
start
Start the WebSocket server and begin accepting connections.
stop
Stop the server and close all connections.