Add code to initiate the server

This commit is contained in:
brunoais 2021-06-19 18:18:54 +01:00
parent 0385d718a5
commit d0f060712f
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,7 @@ import java.util.*;
enum Intents {
START(1),
SOCKET(2),
STOP(30),
CLEANED(31),
;

View file

@ -83,6 +83,9 @@ public final class Server {
if(options.getBroadcastIntents().contains(Intents.START)){
announceScrcpyStarting();
}
if(options.getBroadcastIntents().contains(Intents.SOCKET)){
scrcpyRunningSocket();
}
try {
// synchronous