Load
This commit is contained in:
		
							parent
							
								
									4e441110bd
								
							
						
					
					
						commit
						c3ca1a219c
					
				| 
						 | 
				
			
			@ -96,7 +96,7 @@ addService(({
 | 
			
		|||
                Room.rooms.get(to).send([{
 | 
			
		||||
                    from: client.id,
 | 
			
		||||
                    pack: pack
 | 
			
		||||
                }, 'pack'], wom ? client.id : void 0);
 | 
			
		||||
                }, 'pack/room'], wom ? client.id : void 0);
 | 
			
		||||
                handshake && end({
 | 
			
		||||
                    type: 'success'
 | 
			
		||||
                })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -70,9 +70,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 : {to:string,pack:any}) => {
 | 
			
		||||
            let {to,pack} = payload;
 | 
			
		||||
            this.room(to).emit('message', pack);
 | 
			
		||||
        this.EventPooling.signal('pack/room',(payload : {from:string,pack:any}) => {
 | 
			
		||||
            let {from,pack} = payload;
 | 
			
		||||
            this.room(from).emit('message', pack);
 | 
			
		||||
        })
 | 
			
		||||
        this.EventPooling.signal('room/joined',(payload : {id:string,roomid:any,ownerid:string}) => {
 | 
			
		||||
            let {id,roomid} = payload;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue