mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-17 12:26:11 +02:00
feat: replace SSE with a websockets
Old: /sse/subscribe New: /ws refs #252
This commit is contained in:
parent
fbeb8fc3aa
commit
005f1149ab
26 changed files with 285 additions and 552 deletions
|
|
@ -1,31 +1,21 @@
|
|||
from fastapi import HTTPException, status
|
||||
|
||||
from app.apps.impl.apps_base import AppsBase
|
||||
|
||||
|
||||
class _NotImplemented(HTTPException):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
status_code=status.HTTP_501_NOT_IMPLEMENTED,
|
||||
detail="Not available in native python mode.",
|
||||
)
|
||||
|
||||
|
||||
class NativePythonApps(AppsBase):
|
||||
async def get_app_status_single(self, app_id: str):
|
||||
raise _NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
async def get_app_status(self):
|
||||
raise _NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
async def get_app_status_advanced(self, app_id: str):
|
||||
raise _NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
async def get_app_status_sub(self):
|
||||
raise _NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
async def install_app_sub(self, app_id: str):
|
||||
raise _NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
async def uninstall_app_sub(self, app_id: str, delete_data: bool):
|
||||
raise _NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue