Skip to content

Commit e60a684

Browse files
authored
Merge pull request #750 from python-discord/relax-websocket-rule
Relax rule about usage of non-WebSocket communication
2 parents 1e7756c + 0a46210 commit e60a684

File tree

1 file changed

+6
-8
lines changed
  • pydis_site/templates/events/pages/code-jams/9

1 file changed

+6
-8
lines changed

pydis_site/templates/events/pages/code-jams/9/rules.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@
1111

1212
{% block event_content %}
1313
<ol>
14-
<li><p>Your solution must use one of the approved frameworks (a list will be released soon). It is not permitted to circumvent this rule by e.g. using the approved framework as a wrapper for another framework.</p></li>
14+
<li><p>Your solution must use one of the approved frameworks. It is not permitted to circumvent this rule by e.g. using the approved framework as a wrapper for another framework.</p></li>
1515
<li>
16-
<p><strong>Your solution must only communicate through WebSockets</strong>. Any communication between the client and server (or any two server workers), must utilize WebSockets.</p>
17-
1816
<p>
19-
An exception to this rule is that communication with databases and files is allowed for accessing resources or for storage purposes.
20-
For example, you may use PostgreSQL as a database but not its <code>NOTIFY</code> command.
21-
Working with subprocesses (through stdin/stdout or <code>multiprocessing.Pool()</code>/<code>concurrent.futures.ProcessPoolExecutor()</code>) is also allowed.
17+
<strong>The core of your project must use WebSockets as its communication protocol.</strong>.
18+
This means that you are allowed to use other methods of communication where WebSockets cannot be implemented, however, that should be a non-significant portion of your project.
19+
For example, serving static files for a website cannot be done over WebSockets and it does not pose as a significant portion of a project, therefore it is allowed.
2220
</p>
2321

24-
<p>Another exception is made for serving static files, which normally uses HTTP. You are allowed to serve a JavaScript-implemented client for your WebSocket server.</p>
22+
<p>This rule does not apply to databases and files when used for <i>storage purposes</i> even though that may be a significant portion of your project. Working with subprocesses (through stdin/stdout or <code>multiprocessing.Pool()</code>/<code>concurrent.futures.ProcessPoolExecutor()</code>) is also exempt from this rule.</p>
2523

26-
<p>If you're interested in utilizing a particular non-WebSocket method of communication, reach out to the Events Team for discussion and approval</p>
24+
<p>If you're unsure about your use of non-WebSocket communication, please reach out to the events team.</p>
2725
</li>
2826
<li><p>Your solution should be platform agnostic. For example, if you use filepaths in your submission, use <code>pathlib</code> to create platform agnostic Path objects instead of hardcoding the paths.</p></li>
2927
<li>

0 commit comments

Comments
 (0)