Closed timeDev closed 9 years ago
Calling MumbleClient.sendMessage will always yield this error, because of the way it is written:
MumbleClient.sendMessage
if( !packet.session && !packet.channelId ) { return console.error( "Recipients not specified for sending text messages.\n" + "client.sendMessage isn't used for sending protobuf messages anymore.\n" + "Use client.connection.sendMessage for raw protobuf messages." ); } var packet = { actor: this.session, message: message }; // ...
The packet variable is being hoisted, so it will always be undefined when packet.session is being accessed. I think packetis supposed to be recipient.
packet
packet.session
recipient
Calling
MumbleClient.sendMessage
will always yield this error, because of the way it is written:The
packet
variable is being hoisted, so it will always be undefined whenpacket.session
is being accessed. I thinkpacket
is supposed to berecipient
.