aboutsummaryrefslogtreecommitdiff
path: root/src/client/Network.ts
diff options
context:
space:
mode:
authorJames Hu <51237606+jameshu111@users.noreply.github.com>2023-06-08 13:19:09 -0400
committerJames Hu <51237606+jameshu111@users.noreply.github.com>2023-06-08 13:19:09 -0400
commit7d9a5bc08cb8c5f72a6795aef9374eef12a7cdef (patch)
treef7a1c1a151c377fa131070f68c3434ee8e364bb3 /src/client/Network.ts
parentf5e5abfd54bae0767641dd4d3cfdfc224e690288 (diff)
extra comment forgot to commit
Diffstat (limited to 'src/client/Network.ts')
-rw-r--r--src/client/Network.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/Network.ts b/src/client/Network.ts
index 1ab9c6fc5..d606b9854 100644
--- a/src/client/Network.ts
+++ b/src/client/Network.ts
@@ -2,6 +2,11 @@ import { Utils } from '../Utils';
import requestPromise = require('request-promise');
import { Upload } from '../server/SharedMediaTypes';
+/**
+ * Networking is repsonsible for connecting the client to the server. Networking
+ * mainly provides methods that the client can use to begin the process of
+ * interacting with the server, such as fetching or uploading files.
+ */
export namespace Networking {
export async function FetchFromServer(relativeRoute: string) {
return (await fetch(relativeRoute)).text();