/listenSubmission
https://api.sort-me.org/wss/listenSubmission
Last updated
https://api.sort-me.org/wss/listenSubmission
Last updated
This method can track submission judging almost in real-time.
id
ID of submission you want to listen for.
token
Your access token. Required here because WSS connections can't use headers.
language
Language required to get text verdict representation. Required here because WSS connections can't use headers.
This message contains submissions object in the same format as in .
Then there are two options:
If verdict
is not 0
(judging), then judging is already done, so websocket connection closed, and you will receive no more messages.
If verdict
is 0
(judging), then proceed to next messages stage.
In fact, the only useful information that can be changed during judging and before getting a final verdict is test number. Therefore (and also for optimization purposes) you will get only it, without unnecessary JSON abstractions.
When it comes to judging your submission, you will start receiving plaintext numbers:
That's a test number on which submission is being judged right now. You can display it as live counter, just as in sort-me.org after submission.
If you receive number 0
, it means that compilation stage has just started.
When judging is finished, you receive a submission preview again, in the same format as in .