websocket
Developing[Not yet functional. Please contact us directly if you need something like this.]
In some cases, it can be useful to be able to post a lot of results or ladder-entries from a single client. Maybe you're hosting a gameserver where a lot of users are simultaneously participating in fast-paced duels that you want to track and rate, or maybe you're moving an already existing stack of results and entries to Competier. For situations like this, we also offer a websocket interface to get rid of the massive per-request overhead accompanying HTTP.
After establishing a websocket connection, you can simply send ladder-entries and results in JSON format as messages, which will be treated just like POST HTTP requests. You'll also get similar responses, including HTTP response codes, exactly as if you had used the respective HTTP routes.
Websocket connections are billed 1 credit per minute started or per 100 messages started, whatever is higher. Therefore, you can process a bulk of data much more cheaply than with the HTTP interfaces. Websocket connections time out after 120 seconds without messages.