Stage 249
This commit is contained in:
parent
39e9162e0e
commit
609f3799e0
|
@ -54,12 +54,12 @@ export default class MWSE extends EventTarget {
|
||||||
let {to,pack} = payload;
|
let {to,pack} = payload;
|
||||||
this.peer(to).emit('message', pack);
|
this.peer(to).emit('message', pack);
|
||||||
})
|
})
|
||||||
this.EventPooling.signal('request',(payload : {to:string,pack:any,id:number}) => {
|
this.EventPooling.signal('request',(payload : {from:string,pack:any,id:number}) => {
|
||||||
let {to,pack, id} = payload;
|
let {from,pack, id} = payload;
|
||||||
this.peer(to).emit('request', {
|
this.peer(from).emit('request', {
|
||||||
body: pack,
|
body: pack,
|
||||||
response: (pack: Message) => {
|
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
Loading…
Reference in New Issue