Stage 243
This commit is contained in:
		
							parent
							
								
									bfcf9272e6
								
							
						
					
					
						commit
						76b383e6e7
					
				| 
						 | 
				
			
			@ -51,9 +51,9 @@ export default class MWSE extends EventTarget {
 | 
			
		|||
    }
 | 
			
		||||
    private packMessagingSystem()
 | 
			
		||||
    {
 | 
			
		||||
        this.EventPooling.signal('pack',(payload : {to:string,pack:any}) => {
 | 
			
		||||
            let {to,pack} = payload;
 | 
			
		||||
            this.peer(to, true).emit('message', pack);
 | 
			
		||||
        this.EventPooling.signal('pack',(payload : {from:string,pack:any}) => {
 | 
			
		||||
            let {from,pack} = payload;
 | 
			
		||||
            this.peer(from, true).emit('message', pack);
 | 
			
		||||
        })
 | 
			
		||||
        this.EventPooling.signal('request',(payload : {from:string,pack:any,id:number}) => {
 | 
			
		||||
            let {from,pack, id} = payload;
 | 
			
		||||
| 
						 | 
				
			
			@ -67,9 +67,9 @@ export default class MWSE extends EventTarget {
 | 
			
		|||
            this.peer(from, true).emit('request', scope);
 | 
			
		||||
            this.peer('me').emit('request', scope);
 | 
			
		||||
        })
 | 
			
		||||
        this.EventPooling.signal('pack/room',(payload : {from:string,pack:any}) => {
 | 
			
		||||
            let {from,pack} = payload;
 | 
			
		||||
            this.room(from).emit('message', pack);
 | 
			
		||||
        this.EventPooling.signal('pack/room',(payload : {to:string,pack:any}) => {
 | 
			
		||||
            let {to,pack} = payload;
 | 
			
		||||
            this.room(to).emit('message', pack);
 | 
			
		||||
        })
 | 
			
		||||
        this.EventPooling.signal('room/joined',(payload : {id:string,roomid:any,ownerid:string}) => {
 | 
			
		||||
            let {id,roomid} = 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