add comments
This commit is contained in:
parent
7b2e2963ad
commit
701d97ec74
@ -85,6 +85,8 @@ async def stream_code(websocket: WebSocket):
|
|||||||
|
|
||||||
print("Incoming websocket connection...")
|
print("Incoming websocket connection...")
|
||||||
|
|
||||||
|
|
||||||
|
## Communication protocol setup
|
||||||
async def throw_error(
|
async def throw_error(
|
||||||
message: str,
|
message: str,
|
||||||
):
|
):
|
||||||
@ -107,6 +109,8 @@ async def stream_code(websocket: WebSocket):
|
|||||||
{"type": type, "value": value, "variantIndex": variantIndex}
|
{"type": type, "value": value, "variantIndex": variantIndex}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
## Parameter validation
|
||||||
|
|
||||||
# TODO: Are the values always strings?
|
# TODO: Are the values always strings?
|
||||||
params: Dict[str, str] = await websocket.receive_json()
|
params: Dict[str, str] = await websocket.receive_json()
|
||||||
print("Received params")
|
print("Received params")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user