@foxglove/ros1
Version:
Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer
23 lines (17 loc) • 437 B
text/typescript
import { Client } from "./Client";
import { Publication } from "./Publication";
export interface Publisher {
on(
eventName: "connection",
listener: (
topic: string,
connectionId: number,
destinationCallerId: string,
client: Client,
) => void,
): this;
publish(publication: Publication, message: unknown): Promise<void>;
transportType(): string;
listening(): boolean;
close(): void;
}