Reworked message format, added support for audio messages, made Message class #10

Merged
snxraven merged 20 commits from MiTask/LinkUp-P2P-Chat:main into main 2024-06-14 14:15:43 -04:00
Showing only changes of commit 457bf01bc3 - Show all commits

View File

@ -87,7 +87,8 @@ class Client extends EventEmitter {
} }
sendMessage(message) { sendMessage(message) {
console.log(message.prototype instanceof Message); console.log(message);
console.log(Message.isPrototypeOf(message));
console.log('Bot name:', this.botName); console.log('Bot name:', this.botName);
const data = message.toJsonString(); const data = message.toJsonString();