From 4de62431dbd19ec6477836a849140fcd29868633 Mon Sep 17 00:00:00 2001 From: TheLostTree <65834918+TheLostTree@users.noreply.github.com> Date: Tue, 2 Aug 2022 22:59:24 -0700 Subject: [PATCH] mark send as deprecated + add warning --- src/server/kcp/Session.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/kcp/Session.ts b/src/server/kcp/Session.ts index c68499d..21d65fb 100644 --- a/src/server/kcp/Session.ts +++ b/src/server/kcp/Session.ts @@ -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) {