It is a composite repositiory to demonstrate below networking models:
- Http
- Http2 (SSL)
- Long-Polling
- Server-Sent-Event
- WebSocket
Report Issue | Request Feature | @webceyhan
You need to install the Node.js and npm
package manager first.
Recommended IDE: VSCode
- Clone the repository.
git clone https://github.com/webceyhan/networking-models.git
- Get inside the cloned project folder.
cd networking-models
- Install NPM packages.
npm install
You can use following commands to do various task with the project.
npm run http # run http model
npm run http2 # run http2 model
npm run long-polling # run long-polling model
npm run sse # run server-sent-event model
npm run websocket # run websocket model
Take a look at the other scripts in
package.json