Preconditions.checkArgument(port >= 1024, "Privileged port (below 1024) is not allowed");
instance = new WebSocketServer(address, port);
+ LOG.info("Created WebSocketServer on {}:{}", address, port);
return instance;
}
instance.stop();
instance = null;
+ LOG.info("Destroyed WebSocketServer.");
}
@Override