Class Server

java.lang.Object
me.autobot.lib.server.Server

public class Server extends Object
Server for the robot.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Starts the server on ports (ws) 8080 and (rest) 8081.
    static void
    start(int _ws_port, int _rest_port)
    Starts the server on the specified ports.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Server

      public Server()
  • Method Details

    • start

      public static void start(int _ws_port, int _rest_port)
      Starts the server on the specified ports.
      Parameters:
      _ws_port - The port for the websocket server.
      _rest_port - The port for the REST server.
    • start

      public static void start()
      Starts the server on ports (ws) 8080 and (rest) 8081.