https://github.com/frsource/polling-websockets-sse-workshop
https://github.com/frsource/polling-websockets-sse-workshop
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/frsource/polling-websockets-sse-workshop
- Owner: FRSOURCE
- Created: 2023-09-20T10:55:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T12:10:06.000Z (over 2 years ago)
- Last Synced: 2024-05-01T11:06:18.078Z (about 2 years ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# polling-websockets-sse-workshop
This repository contains multiple implementations of a simple chat application:
1. Short-poll implementation is on the [`main` branch](https://github.com/FRSOURCE/polling-websockets-sse-workshop/tree/main).
2. Long-poll implementation is on the [`long-poll` branch](https://github.com/FRSOURCE/polling-websockets-sse-workshop/tree/long-poll).
3. Websockets implementation is on the [`websockets` branch](https://github.com/FRSOURCE/polling-websockets-sse-workshop/tree/websockets).
4. SSE implementation is on the [`sse` branch](https://github.com/FRSOURCE/polling-websockets-sse-workshop/tree/sse).
## How to run
Install dependencies
```bash
npm install
```
Run the application
```bash
npm run dev
```
The client app will be available under http://localhost:3000/