Stage 246

This commit is contained in:
Abdussamed ULUTAŞ 2022-12-23 00:53:52 +03:00
parent 5b02adde12
commit d2632f2d8d
3 changed files with 8 additions and 11 deletions

View File

@ -57,18 +57,15 @@ export default class MWSE extends EventTarget {
}) })
this.EventPooling.signal('request',(payload : {from:string,pack:any,id:number}) => { this.EventPooling.signal('request',(payload : {from:string,pack:any,id:number}) => {
let {from,pack, id} = payload; let {from,pack, id} = payload;
this.peer(from, true).emit('request', { let scope = {
body: pack, body: pack,
response: (pack: Message) => { response: (pack: Message) => {
this.response(from, id, pack); this.response(from, id, pack);
} },
}); peer: this.peer(from, true)
this.peer('me').emit('request', { };
body: pack, this.peer(from, true).emit('request', scope);
response: (pack: Message) => { this.peer('me').emit('request', scope);
this.response(from, id, pack);
}
});
}) })
this.EventPooling.signal('pack/room',(payload : {to:string,pack:any}) => { this.EventPooling.signal('pack/room',(payload : {to:string,pack:any}) => {
let {to,pack} = payload; 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