Beta to stable #5

Merged
saqut merged 37 commits from beta into stable 2022-12-25 23:24:56 +03:00
3 changed files with 8 additions and 11 deletions
Showing only changes of commit d2632f2d8d - Show all commits

View File

@ -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