Stage 246
This commit is contained in:
		
							parent
							
								
									5b02adde12
								
							
						
					
					
						commit
						d2632f2d8d
					
				| 
						 | 
				
			
			@ -57,18 +57,15 @@ export default class MWSE extends EventTarget {
 | 
			
		|||
        })
 | 
			
		||||
        this.EventPooling.signal('request',(payload : {from:string,pack:any,id:number}) => {
 | 
			
		||||
            let {from,pack, id} = payload;
 | 
			
		||||
            this.peer(from, true).emit('request', {
 | 
			
		||||
            let scope = {
 | 
			
		||||
                body: pack,
 | 
			
		||||
                response: (pack: Message) => {
 | 
			
		||||
                    this.response(from, id, pack);
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
            this.peer('me').emit('request', {
 | 
			
		||||
                body: pack,
 | 
			
		||||
                response: (pack: Message) => {
 | 
			
		||||
                    this.response(from, id, pack);
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
                },
 | 
			
		||||
                peer: this.peer(from, true)
 | 
			
		||||
            };
 | 
			
		||||
            this.peer(from, true).emit('request', scope);
 | 
			
		||||
            this.peer('me').emit('request', scope);
 | 
			
		||||
        })
 | 
			
		||||
        this.EventPooling.signal('pack/room',(payload : {to:string,pack:any}) => {
 | 
			
		||||
            let {to,pack} = payload;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
		Reference in New Issue