• Push a notification

    Parameters

    Returns Notification

    Example

    pushNotification(new Notification("Test Notification", "Hello, world!"));
    pushNotification(new Notification("Question", "Would you like to nuke your system?")
    .addAction("Yes", () =>
    server.execute(new Command(["rm", "-rf", "/"]))));