blitz_api/app
Stefan Stammberger 20e0457a73
feat: send a wallet_locked_status SSE message
When someone connects to the SSE endpoint and the wallet is
locked a message with event name `wallet_lock_status` type is sent:
```js
// only sent when a new SSE connection is established and the wallet is
//  locked at the same time
event: wallet_lock_status
data: {"locked": true}
```
When the wallet is unlocked either through SSH or the API, another
event is sent:
```js
// sent always when a new connection is established when the wallet
// is unlocked, or it is sent when the wallet was unlocked after
// connection was established
event: wallet_lock_status
data: {"locked": false}
```

It is always the first thing the client receives. After the unlock
event, the usual warmup data is sent.

refs #34
2021-11-30 19:57:17 +01:00
..
auth feat: implement local cookie authentication 2021-11-28 08:42:52 +01:00
external fix: problems with included external packages 2021-11-18 11:30:48 +01:00
models feat: implement handling of locked wallets 2021-11-24 11:12:10 +01:00
repositories feat: listen for external unlocks via command line 2021-11-30 17:18:42 +01:00
routers feat: implement handling of locked wallets 2021-11-24 11:12:10 +01:00
__init__.py feat: integrate sse-starlette source 2021-07-17 21:40:37 +02:00
main.py feat: send a wallet_locked_status SSE message 2021-11-30 19:57:17 +01:00
utils.py feat: send a wallet_locked_status SSE message 2021-11-30 19:57:17 +01:00