AIServer
WebSocket server for AI client communication.
Provides a WebSocket interface for AI agents to execute robot actions and receive state updates. Supports request-response correlation via request IDs and provides heartbeat functionality for connection health monitoring.
Parameters
port
the port to listen on (default: 8081)
Functions
Link copied to clipboard
Link copied to clipboard
Broadcasts the current robot state to the connected client.
Link copied to clipboard
Link copied to clipboard
Returns whether there is an active, healthy client connection.
Link copied to clipboard
open fun makeSecure(sslServerSocketFactory: SSLServerSocketFactory?, sslProtocols: Array<out String?>?)
Link copied to clipboard
Sets the callback for handling action execution requests.
Link copied to clipboard
Link copied to clipboard
Sets the provider for robot state data.
Link copied to clipboard