Yamcs HTTP API
- Alarms
- Buckets
- Clearance
- Clients
- Commands
- Cop1
- Database
- Events
- File Transfer
- Iam
- Indexes
- Management
- Mdb Override
- Mdb
- Packets
- Parameter Archive
- Processing
- Queue
- Replication
- Rocks Db
- Server
- Stream Archive
- Table
- Tag
- Time Correlation
- Time
- Timeline
Related
Yamcs Release Notes
Yamcs Server Manual
Source Code Documentation
Download this Document
Subscribe LinksΒΆ
Receive link updates
WebSocket
This method requires to upgrade an HTTP connection to WebSocket. See details on how Yamcs uses WebSocket.
Use the message type links
.
Input Type
interface SubscribeLinksRequest {
instance: string;
}
Output Type
interface LinkEvent {
type: Type;
linkInfo: LinkInfo;
}
Related Types
interface LinkInfo {
instance: string;
name: string;
type: string;
spec: string;
disabled: boolean;
status: string;
dataInCount: string; // String decimal
dataOutCount: string; // String decimal
detailedStatus: string;
//if this is a sublink of an aggregated data link, this is the name of the parent
parentName: string;
}
enum Type {
// A new link was registered. You also receive this event directly after you subscribe,
// for every link that is registered at that time.
REGISTERED = "REGISTERED",
// A link was unregistered.
UNREGISTERED = "UNREGISTERED",
// A link was updated in one of its attributes, for example the dataCount has increased,
// or the status has changed.
UPDATED = "UPDATED",
}