An open API service indexing awesome lists of open source software.

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

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.