|
@@ -32,9 +32,8 @@ initLogger('Debug');
|
|
|
path: '/ws',
|
|
|
})
|
|
|
export class MetaGateway
|
|
|
- implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect
|
|
|
-{
|
|
|
- constructor(private readonly sceneService: SceneService) {}
|
|
|
+ implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
|
|
|
+ constructor(private readonly sceneService: SceneService) { }
|
|
|
private logger: Logger = new Logger('MetaGateway');
|
|
|
private peer: PeerConnection = null;
|
|
|
private timer: NodeJS.Timeout;
|
|
@@ -267,6 +266,22 @@ export class MetaGateway
|
|
|
'start and send to gprc sceneService,method=>init',
|
|
|
payload,
|
|
|
);
|
|
|
+
|
|
|
+ const demoVal = {
|
|
|
+ id: 'start',
|
|
|
+ data: '{"IsHost":false,"SkinID":"10089","SkinDataVersion":"1008900008","RoomTypeID":""}',
|
|
|
+ room_id: 'e629ef3e-022d-4e64-8654-703bb96410eb',
|
|
|
+ channel_id: '4f2cf027d926f3cc___channel',
|
|
|
+ user_id: '15bc22119cfa1',
|
|
|
+ trace_id: '45a925d6-7d05-4c11-93a3-0fdaabd7db6f',
|
|
|
+ packet_id: '',
|
|
|
+ session_id: '4bbfd45cbeab43d3a9b992349f00dfba',
|
|
|
+ client_os: '',
|
|
|
+ fe_version: '',
|
|
|
+ is_browser: false,
|
|
|
+ };
|
|
|
+
|
|
|
+ client.send(JSON.stringify(demoVal));
|
|
|
}
|
|
|
|
|
|
handleConnection(client: WebSocket, ...args: any[]) {
|