roslib
Version:
The standard ROS Javascript Library
11 lines (10 loc) • 412 B
TypeScript
import { ITransportFactory } from './Transport.ts';
/**
* A transport factory that uses WebSockets to send and receive messages.
* Will use the native `WebSocket` class if available, otherwise falls back
* to the `ws` package.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
* @see https://github.com/websockets/ws
*/
export declare const WebSocketTransportFactory: ITransportFactory;