Created
September 25, 2022 16:41
-
-
Save percybolmer/c3c56bf991799a218a811e8a60997e87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* SendMessageEvent is used to send messages to other clients | |
* */ | |
class SendMessageEvent { | |
constructor(message, from) { | |
this.message = message; | |
this.from = from; | |
} | |
} | |
/** | |
* NewMessageEvent is messages comming from clients | |
* */ | |
class NewMessageEvent { | |
constructor(message, from, sent) { | |
this.message = message; | |
this.from = from; | |
this.sent = sent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment