Module playground_views

Source
Expand description

Handles playground-views-related functionality, in particular the websocket connections used to update the grading for services like tmc.

Structsยง

ClientConnection ๐Ÿ”’
PlaygroundSubmissionMessage ๐Ÿ”’
WsConnections ๐Ÿ”’

Enumsยง

PlaygroundViewsMessage
The message type for all messages sent from the server to the client from the playgrounds-views websocket connection.

Constantsยง

CONNECTION_TIMEOUT ๐Ÿ”’
PING_INTERVAL ๐Ÿ”’

Staticsยง

WS_CONNECTIONS ๐Ÿ”’

Functionsยง

_add_routes
receive_grading ๐Ÿ”’
playground-views passes a URL pointing to this route to an exercise service when sending submissions so that if the service has an update for a pending grading, it will be sent here and passed on to through the websocket
websocket ๐Ÿ”’
Starts a new websocket connection.