|
@@ -32,8 +32,9 @@ 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;
|
|
@@ -280,10 +281,23 @@ export class MetaGateway
|
|
|
fe_version: '',
|
|
|
is_browser: false,
|
|
|
};
|
|
|
+
|
|
|
+ const startReply = {
|
|
|
+ id: 'start',
|
|
|
+ data: '{"IsHost":false,"SkinID":"10089","SkinDataVersion":"1008900008","RoomTypeID":""}',
|
|
|
+ room_id: 'e629ef3e-022d-4e64-8654-703bb96410eb',
|
|
|
+ channel_id: '3a1a62e9a3c74de6___channel',
|
|
|
+ user_id: 'ed58c8d4ce38c',
|
|
|
+ trace_id: '394df10a-d924-43a9-940d-1dbb41e43f24',
|
|
|
+ packet_id: '',
|
|
|
+ session_id: '67087ad820ea4c89af311e27281d73a6',
|
|
|
+ client_os: '',
|
|
|
+ fe_version: '',
|
|
|
+ };
|
|
|
this.sceneService.onSteaming.subscribe((val) => {
|
|
|
if (val) {
|
|
|
console.log('onSteaming-start', val);
|
|
|
- client.send(JSON.stringify(demoVal));
|
|
|
+ client.send(JSON.stringify(startReply));
|
|
|
}
|
|
|
// debugger
|
|
|
});
|