add comments

This commit is contained in:
Abi Raja 2024-07-31 11:27:26 -04:00
parent 7b2e2963ad
commit 701d97ec74

View File

@ -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")