Removed write of every packet
This commit is contained in:
10
dist/Unity/UnityWebSocket.js
vendored
10
dist/Unity/UnityWebSocket.js
vendored
@@ -51,8 +51,6 @@ exports.CameraUnityStateColors = exports.UnityWebSocket = void 0;
|
||||
var ws_1 = require("ws");
|
||||
var Utils_1 = require("../Utils");
|
||||
var Status_1 = require("../Status");
|
||||
var path_1 = require("path");
|
||||
var fs_extra_1 = require("fs-extra");
|
||||
var PREFIX = '[Unity]';
|
||||
var UnityWebSocket = /** @class */ (function () {
|
||||
function UnityWebSocket(Main) {
|
||||
@@ -235,7 +233,13 @@ var UnityWebSocket = /** @class */ (function () {
|
||||
catch (error) {
|
||||
return;
|
||||
}
|
||||
(0, fs_extra_1.writeFileSync)((0, path_1.join)(this._Main.dataPath, "tempdebug-".concat(message.type, "-").concat(new Date().getTime(), ".json")), JSON.stringify(message, null, 4));
|
||||
// writeFileSync(
|
||||
// join(
|
||||
// this._Main.dataPath,
|
||||
// `tempdebug-${message.type}-${new Date().getTime()}.json`,
|
||||
// ),
|
||||
// JSON.stringify(message, null, 4),
|
||||
// );
|
||||
switch (message.type) {
|
||||
case 'heartbeat_data':
|
||||
this.parameters.timelineWatching =
|
||||
|
||||
Reference in New Issue
Block a user