From b72afb1695f51211e1fd0f9741bea9cc26570a13 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Mon, 25 Oct 2021 08:54:46 -0400 Subject: [PATCH] Todo, readme --- README.md | 2 ++ server/index.html | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8dd173c6..ee843861 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ To build releases, I use [GoReleaser](https://goreleaser.com/). If you have that ## TODO - add HTTPS +- make limits configurable +- limit max number of subscriptions ## Contributing I welcome any and all contributions. Just create a PR or an issue. diff --git a/server/index.html b/server/index.html index a0ecb51e..e42114e0 100644 --- a/server/index.html +++ b/server/index.html @@ -12,9 +12,9 @@ - - - + + + @@ -56,7 +56,7 @@

- +

@@ -83,7 +83,7 @@ notifications like this (see full example):

- const eventSource = new EventSource(`https://ntfy.sh/mytopic/sse`);
+ const eventSource = new EventSource('https://ntfy.sh/mytopic/sse');
eventSource.onmessage = (e) => {
  // Do something with e.data
}; @@ -100,9 +100,9 @@ Here's an example in JS with fetch() (see full example):

- fetch(`https://ntfy.sh/mytopic`, {
+ fetch('https://ntfy.sh/mytopic', {
  method: 'POST', // PUT works too
-   body: `Hello from the other side.`
+   body: 'Hello from the other side.'
})