some samples abount server push tech e.g. Polling, COMET, SSE, WebSocket
Firstly,
cd server
npm i
npm start
Then visit http://127.0.0.1:8080/ & http://127.0.0.1:8080/post in your browser
- On http://127.0.0.1:8080/post you can post some messages.
- Then on http://127.0.0.1:8080/ you will recieve these messages posted just now.
😊 😊
These technologies include:
- Ajax Polling
- COMET
- HTTP long polling
- iframe
- SSE (Server-Sent Events)
- WebSocket
And this is a brief introduction of these server-side-push technologies (in Chinese).