mirror of
https://github.com/correl/planning-poker.git
synced 2024-11-14 19:19:30 +00:00
Restore incoming event handling
This commit is contained in:
parent
a27394878f
commit
7fb7cc4805
1 changed files with 2 additions and 7 deletions
|
@ -49,13 +49,8 @@ app.ports.joinRoom.subscribe(options => {
|
|||
})
|
||||
|
||||
// Incoming room events
|
||||
const handle = (type) => (data) =>
|
||||
app.ports.roomEvents.send({
|
||||
"type": type,
|
||||
"data": data
|
||||
})
|
||||
["vote", "reset"]
|
||||
.forEach(event => channel.on(event, handle(event)))
|
||||
channel.on("vote", app.ports.gotVote.send)
|
||||
channel.on("reset", app.ports.gotReset.send)
|
||||
|
||||
// Outgoing room events
|
||||
app.ports.roomActions.subscribe(action => {
|
||||
|
|
Loading…
Reference in a new issue