public static void Login(Action <LoginDataRes> callback) { var data = new RegisterData() { Username = "******", Password = "******" }; var bytes = PackageFactory.Pack(1002, data, callback); SocketClient.Send(bytes); }
//4.Start heartbeat private static void BuildHeartbeatHeadPackage() { _heartbeatBytes = PackageFactory.Pack(1, new BaseReqData()); }