This commit is contained in:
Kim Ravn Hansen
2025-09-15 10:44:24 +02:00
parent 232a771980
commit 58c48fdc4b
17 changed files with 848 additions and 57 deletions

View File

@@ -78,9 +78,12 @@ class MudServer {
//
// The file types we allow to be served.
const contentTypes = {
".js": "application/javascript",
".css": "text/css",
".html": "text/html",
".ico": "image/x-icon",
".js": "application/javascript",
".json": "application/json",
".png": "image/png",
};
//
@@ -145,7 +148,7 @@ class MudServer {
// Check if message too big
if (data.byteLength > Config.maxIncomingMessageSize) {
console.error("Message was too big!", Config.maxIncomingMessageSize, data.byteLength);
session.calamity(254, "batman");
session.calamity("batman");
return;
}