https://github.com/undp-data/sveltekit-python-websocket-experiment
This is a repo to experiment websocket between sveltekit and python
https://github.com/undp-data/sveltekit-python-websocket-experiment
Last synced: 17 days ago
JSON representation
This is a repo to experiment websocket between sveltekit and python
- Host: GitHub
- URL: https://github.com/undp-data/sveltekit-python-websocket-experiment
- Owner: UNDP-Data
- License: mit
- Created: 2023-08-22T11:29:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-14T14:30:56.000Z (almost 3 years ago)
- Last Synced: 2025-03-05T16:40:33.927Z (over 1 year ago)
- Language: TypeScript
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sveltekit-python-websocket-experiment
This is a repo to experiment websocket between sveltekit and python
## Usage
### 1. Launch sveltekit app
```
cd sveltekit-app
pnpm install
pnpm dev
```
### 2. connect to websocket server of sveltekit from Python
```
cd python-api
pipenv install
pipenv run serve
```
Python websocket client will send progress value every second.
### 3. Open sveltekit app in browser
open http://localhost:5173, click `Establish WebSocket connection` to start getting progress value from Python.