Sort Me API
  • 👋Sort Me Documentation
  • API Methods
    • ⚰️Problems
    • 🚲Submissions
    • 🏆Contests
    • 📚Archives
    • ❤️Users
    • 🛰️Websocket
      • /listenSubmission
      • /contestEvents
    • 👾Miscellaneous
  • Tricky moments
    • 🛂Account limits
    • 🔑Authorization
    • 🗃️Pagination
    • 🈂️Localization
    • 🖼️Images
Powered by GitBook
On this page
  1. API Methods
  2. Websocket

/contestEvents

https://api.sort-me.org/wss/listenSubmission

This method notifies you about most important events happening in contest.

Query parameters

Name
Description

id

ID of contest you want to listen events from.

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.

When connection is established, you will start receiving JSON objects containing fields type and event.

Event types

This event represents important message from jury to all participants. Formatted in Markdown.

{
    "type": "broadcast",
    "event": {
        "message": "Statement of problem A changed: x is *BIGGER* than $10^9$, not less."
    }
}

If jury_chat feature is enabled for contest, this event represents message from jury to you as individual participant. Formatted in Markdown.

{
    "type": "jury-message",
    "event": {
        "message": "Read statement closer, please."
    }
}

Last updated 1 year ago

🛰️