Skip to content

Commit 44475f7

Browse files
committed
Add note about sse example in readme
1 parent 67d16e6 commit 44475f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ Note: Make sure your database adapter supports this feature. If not, bug them to
9090
micro-analytics will tell you when it starts up if it is supported, so the easiest way to find
9191
out is just to start it up.
9292

93+
The example below shows how you can listen for events in the browser, just swap
94+
micro-analytics.now.sh with your own domain and give it a try.
95+
9396
```es6
9497
const sse = new EventSource('https://micro-analytics.now.sh/sse')
9598
sse.onopen = function () { console.log('[sse] open') }

0 commit comments

Comments
 (0)