cecehoush / spiderbyte-website

0 stars 0 forks source link

Server: add web-socket handling to work with validator #44

Closed kirex0 closed 2 weeks ago

kirex0 commented 1 month ago

This ticket is to allow the server to receive a request from the front end to the server as an API RESTful request and then send the data to the python validator via web-socket. Using web sockets, we basically establish a connection between the user and the sandbox, meaning once the sandbox finishes the code validation it will submit it's response directly to the user and update the database separately. This means the API can push code submissions into the queue and not wait for anything to return, making our API "Asynchronous" and "Non-Blocking".

Asking chat on how to approach this: https://chatgpt.com/share/67117a77-c4dc-800e-847d-cda2406e5047