Skip to content

Commit 0ed9322

Browse files
authored
Clarify WebSocket restriction rule's impact on static serving
Before this change, the rule technically disallows implementing JavaScript clients because webbrowsers use HTTP to fetch the static files. This commit also fixes a mistake in a previous commit where Markdown-style characters were used instead of code-tags.
1 parent 7de0083 commit 0ed9322

File tree

1 file changed

+3
-1
lines changed
  • pydis_site/templates/events/pages/code-jams/9

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717

1818
<p>
1919
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 `NOTIFY` command.
20+
For example, you may use PostgreSQL as a database but not its <code>NOTIFY</code> command.
2121
Working with subprocesses (through stdin/stdout or <code>multiprocessing.Pool()</code>/<code>concurrent.futures.ProcessPoolExecutor()</code>) is also allowed.
2222
</p>
2323

24+
<p>Another exception is made for serving static files, which normally uses HTTP. You are also allowed to serve a JavaScript-implemented client for your WebSocket server.</p>
25+
2426
<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>
2527
</li>
2628
<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>

0 commit comments

Comments
 (0)