Handles tcp tunnels and maintains a list of connections

Hierarchy

  • TCPServer

Constructors

Properties

connections: {
    [id: string]: BotTunnel;
} = {}

bot connections in a id:BotTunnel array

Type declaration

robotManager: RobotManager
server: Server

Methods

  • When a robot connects, add the tunnel to the robot connections at its id

    assign a random id to new robots

    Parameters

    • socket: Socket

      the incoming connection socket information

    Returns void

Generated using TypeDoc