Integrated server-side chatPreprocessor.js with pmHandler.js

This commit is contained in:
rainbow napkin 2025-10-02 04:56:47 -04:00
parent ad3cdd38a3
commit 6f89f36fb8
3 changed files with 32 additions and 42 deletions

View file

@ -23,9 +23,10 @@ class message{
* @param {String} sender - Name of user who sent the message
* @param {Array} recipients - Array of usernames who are supposed to receive the message
* @param {String} msg - Contents of the message, with links replaced with numbered file-seperator markers
* @param {String} type - Message Type Identifier, used for client-side processing.
* @param {Array} links - Array of URLs/Links included in the message.
*/
constructor(sender, recipients, msg, links){
constructor(sender, recipients, msg, type, links){
/**
* Name of user who sent the message
@ -42,6 +43,11 @@ class message{
*/
this.msg = msg;
/**
* Message Type Identifier, used for client-side processing.
*/
this.type = type;
/**
* Array of URLs/Links included in the message.
*/