|
@@ -23,6 +23,7 @@ import * as path from 'path';
|
|
|
import { createReadStream } from 'fs';
|
|
|
import { SceneService } from './scene/scene.service';
|
|
|
import { ConfigService } from '@nestjs/config';
|
|
|
+import { stringify } from 'querystring';
|
|
|
|
|
|
// 'Verbose' | 'Debug' | 'Info' | 'Warning' | 'Error' | 'Fatal';
|
|
|
initLogger('Debug');
|
|
@@ -34,12 +35,11 @@ initLogger('Debug');
|
|
|
path: '/ws',
|
|
|
})
|
|
|
export class MetaGateway
|
|
|
- implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect
|
|
|
-{
|
|
|
+ implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
|
|
|
constructor(
|
|
|
private readonly sceneService: SceneService,
|
|
|
private readonly configService: ConfigService,
|
|
|
- ) {}
|
|
|
+ ) { }
|
|
|
private logger: Logger = new Logger('MetaGateway');
|
|
|
private peer: PeerConnection = null;
|
|
|
private timer: NodeJS.Timeout;
|
|
@@ -255,7 +255,7 @@ export class MetaGateway
|
|
|
this.sceneService.init(requestPayLoad);
|
|
|
this.logger.log(
|
|
|
'start and send to gprc sceneService,method=>init',
|
|
|
- requestPayLoad,
|
|
|
+ JSON.stringify(requestPayLoad),
|
|
|
);
|
|
|
|
|
|
const startReply = {
|
|
@@ -277,7 +277,7 @@ export class MetaGateway
|
|
|
}
|
|
|
// debugger
|
|
|
});
|
|
|
- } catch (error) {}
|
|
|
+ } catch (error) { }
|
|
|
}
|
|
|
|
|
|
handleConnection(client: WebSocket, ...args: any[]) {
|