Skip to content

Commit

Permalink
Minor changes in GH Actions and README
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Jan 15, 2024
1 parent 283c869 commit 85105a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 81 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ jobs:
strategy:
matrix:
node-version:
- "20"
- "18"
- "16"
- "14"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: yarn

# Publish:
Expand All @@ -42,11 +44,10 @@ jobs:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Documentation:
runs-on: 'ubuntu-latest'
needs: Build
if: github.ref == 'refs/heads/master'
env:
DOC_GITHUB_TOKEN: '${{ secrets.DOC_TOKEN }}'
steps:
- uses: actions/checkout@v2
- run: curl https://opensource.byjg.com/add-doc.sh | bash /dev/stdin js yaj-sse
needs: Build
uses: byjg/byjg.github.io/.github/workflows/add-doc.yaml@master
with:
folder: js
project: ${{ github.event.repository.name }}
secrets: inherit
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![GitHub release](https://img.shields.io/github/release/byjg/yaj-sse.svg)](https://github.com/byjg/yaj-sse/releases/)
[![](https://data.jsdelivr.com/v1/package/npm/yaj-sse/badge)](https://www.jsdelivr.com/package/npm/yaj-sse)

A lightweigth (<2kb) Yaj Plugin for Server-Sent Events (SSE) EventSource Polyfill.
A lightweigth (\<2kb) Yaj Plugin for Server-Sent Events (SSE) EventSource Polyfill.
This plugin try to use the native EventSource object if it supported by the browser.
If there is no native support the request is made by ajax requests (polling).
You do not need to change the server side nor the client side.
Expand Down Expand Up @@ -219,16 +219,16 @@ docker run -it --rm -p 8080:80 -v $PWD:/var/www/html byjg/php:7.4-fpm-nginx
```

Open the browser:
http://localhost:8080/examples/sse-client.html
[http://localhost:8080/examples/sse-client.html](http://localhost:8080/examples/sse-client.html)


## References

* http://www.w3.org/TR/2009/WD-eventsource-20091029/
* https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events
* http://html5doctor.com/server-sent-events/
* http://www.html5rocks.com/en/tutorials/eventsource/basics/
* [http://www.w3.org/TR/2009/WD-eventsource-20091029/](http://www.w3.org/TR/2009/WD-eventsource-20091029/)
* [https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events](https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events)
* [http://html5doctor.com/server-sent-events/](http://html5doctor.com/server-sent-events/)
* [http://www.html5rocks.com/en/tutorials/eventsource/basics/](http://www.html5rocks.com/en/tutorials/eventsource/basics/)


----
[Open source ByJG](http://opensource.byjg.com)
[Open source ByJG](http://opensource.byjg.com)
66 changes: 0 additions & 66 deletions _config.yml

This file was deleted.

0 comments on commit 85105a3

Please sign in to comment.