gemercheung 3 年之前
父節點
當前提交
ad68f13b0d
共有 1 個文件被更改,包括 18 次插入3 次删除
  1. 18 3
      src/meta.gateway.ts

+ 18 - 3
src/meta.gateway.ts

@@ -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[]) {