Stage 249

This commit is contained in:
Abdussamed ULUTAŞ 2022-12-23 00:24:03 +03:00
parent 39e9162e0e
commit 609f3799e0
3 changed files with 6 additions and 6 deletions

View File

@ -54,12 +54,12 @@ export default class MWSE extends EventTarget {
let {to,pack} = payload;
this.peer(to).emit('message', pack);
})
this.EventPooling.signal('request',(payload : {to:string,pack:any,id:number}) => {
let {to,pack, id} = payload;
this.peer(to).emit('request', {
this.EventPooling.signal('request',(payload : {from:string,pack:any,id:number}) => {
let {from,pack, id} = payload;
this.peer(from).emit('request', {
body: pack,
response: (pack: Message) => {
this.response(to, id, pack);
this.response(from, id, pack);
}
});
})

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long