forked from snxraven/LinkUp-P2P-Chat
Trying out isPrototypeOf() function
This commit is contained in:
parent
feff30fecc
commit
457bf01bc3
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user