From 79b805032927b862e62aadcaea67f1218dda59b2 Mon Sep 17 00:00:00 2001 From: TheLostTree <65834918+TheLostTree@users.noreply.github.com> Date: Tue, 2 Aug 2022 22:57:38 -0700 Subject: [PATCH] mark send as deprecated --- src/server/kcp/Session.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/kcp/Session.ts b/src/server/kcp/Session.ts index cb8b4f2..c68499d 100644 --- a/src/server/kcp/Session.ts +++ b/src/server/kcp/Session.ts @@ -118,6 +118,11 @@ export default class Session { SRServer.getInstance().handshake(HandshakeType.DISCONNECT, this.ctx); } + + /** + * @deprecated The method should not be used + * use sendT instead + */ public send(name: PacketName, body: {}) { this.c.verbL(body); const packet = Packet.encode(name, body);