packagechat;importio.grpc.Server;importio.grpc.ServerBuilder;importjava.io.IOException;publicclassChatServer{finalstaticintPORT=1337;publicstaticvoidmain(String[]args){try{System.out.println("[BOOT] Launching chat service on port "+PORT);Serverserver=ServerBuilder.forPort(PORT).addService(newChatServiceImpl()).build();server.start();System.out.println("[BOOT] Server started!");server.awaitTermination();}catch(IOExceptione){e.printStackTrace();}catch(InterruptedExceptione){e.printStackTrace();}}}