roslib
    Preparing search index...

    Interface ITransport

    Abstraction responsible for sending and receiving messages between the client and the rosbridge server.

    Inspired by the WebSocket API, which is the default reference implementation.

    interface ITransport {
        close(): void;
        isClosed(): boolean;
        isClosing(): boolean;
        isConnecting(): boolean;
        isOpen(): boolean;
        on(
            event: "error" | "open" | "close",
            listener: (event: unknown) => void,
        ): this;
        on(event: "message", listener: (message: RosbridgeMessage) => void): this;
        send(message: RosbridgeMessage): void;
    }

    Implemented by

    Index

    Methods