File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 11<p align =" center " >
2- <img alt =" Logo " height =" 100 " src =" https://github.com/explodinglabs/refresh.js /blob/main/.images/logo-light.png?raw=true#gh-light-mode-only " />
3- <img alt =" Logo " height =" 100 " src =" https://github.com/explodinglabs/refresh.js /blob/main/.images/logo-dark.png?raw=true#gh-dark-mode-only " />
2+ <img alt =" Logo " height =" 100 " src =" https://github.com/explodinglabs/refresh/blob/main/.images/logo-light.png?raw=true#gh-light-mode-only " />
3+ <img alt =" Logo " height =" 100 " src =" https://github.com/explodinglabs/refresh/blob/main/.images/logo-dark.png?raw=true#gh-dark-mode-only " />
44</p >
55
66<p align =" center " >
15154 . The webpage receives the event and refreshes itself.
1616
1717<p align =" center " >
18- <img alt =" Architecture diagram " src =" https://github.com/explodinglabs/refresh.js /blob/main/.images/architecture-light.svg?raw=true#gh-light-mode-only " />
19- <img alt =" Architecture diagram " src =" https://github.com/explodinglabs/refresh.js /blob/main/.images/architecture-dark.svg?raw=true#gh-dark-mode-only " />
18+ <img alt =" Architecture diagram " src =" https://github.com/explodinglabs/refresh/blob/main/.images/architecture-light.svg?raw=true#gh-light-mode-only " />
19+ <img alt =" Architecture diagram " src =" https://github.com/explodinglabs/refresh/blob/main/.images/architecture-dark.svg?raw=true#gh-dark-mode-only " />
2020</p >
2121
2222## Benefits
3030
3131### Start the container
3232
33- Bring up the refresh.js container (this is just
33+ Bring up the refresh container (this is just
3434[ SSEHub] ( https://github.com/vgno/ssehub ) with a little configuration):
3535
3636``` sh
37- docker run --detach --name refresh.js --publish 8080:8080 ghcr.io/explodinglabs/refresh.js
37+ docker run --detach --name refresh --publish 8080:8080 ghcr.io/explodinglabs/refresh
3838```
3939
4040Port 8080 is exposed for you to ` POST ` to and for the browser connect to. This
@@ -59,7 +59,9 @@ Include `refresh.js` in your html (put this at the bottom, right before
5959``` html
6060<script
6161 type =" text/javascript"
62- src =" https://explodinglabs.github.io/refresh.js/refresh.js"
62+ data-events-uri =" :8080/changes"
63+ src =" https://explodinglabs.github.io/refresh/refresh.js"
64+ async
6365></script >
6466```
6567
You can’t perform that action at this time.
0 commit comments