mark send as deprecated + add warning

This commit is contained in:
TheLostTree 2022-08-02 22:59:24 -07:00
parent 79b8050329
commit 4de62431db

View File

@ -130,6 +130,8 @@ export default class Session {
this.c.verbH(packet.rawData);
if (Logger.VERBOSE_LEVEL >= VerboseLevel.WARNS) this.c.log(packet.protoName);
this.kcpobj.send(packet.rawData);
//i'll rename sendT to send once all instances are updated
this.c.warn("Session.send deprecated! migrate to Session.sendT");
}
public sendRaw(data: Buffer) {