Comments were for non-redux scenario
This commit is contained in:
parent
1d13da4ab5
commit
cbcdd912c9
1 changed files with 0 additions and 6 deletions
|
@ -39,8 +39,6 @@ module.exports = function (io, store) {
|
|||
|
||||
socket.on(ACCEPT_CALL, function (data) {
|
||||
socket.broadcast.in(userMapRoom(data.inviter, data.mapid)).emit(CALL_ACCEPTED, data.invited)
|
||||
// convert this so that it broadcasts to all sockets and includes the map id
|
||||
// and who's participating
|
||||
socket.broadcast.in(mapRoom(data.mapid)).emit(CALL_STARTED)
|
||||
})
|
||||
|
||||
|
@ -53,14 +51,10 @@ module.exports = function (io, store) {
|
|||
})
|
||||
|
||||
socket.on(JOIN_CALL, function (data) {
|
||||
// convert this so that it broadcasts to all sockets and includes the map id
|
||||
// and info about who joined
|
||||
socket.broadcast.in(mapRoom(data.mapid)).emit(MAPPER_JOINED_CALL, data.id)
|
||||
})
|
||||
|
||||
socket.on(LEAVE_CALL, function (data) {
|
||||
// convert this so that it broadcasts to all sockets and includes the map id
|
||||
// and info about who joined
|
||||
socket.broadcast.in(mapRoom(data.mapid)).emit(MAPPER_LEFT_CALL, data.id)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue