Improved player
This commit is contained in:
@@ -124,9 +124,10 @@ const mutations = {
|
||||
},
|
||||
LEAVE (state) {
|
||||
state.peers.forEach((peer) => {
|
||||
peer.dataChannel.close()
|
||||
peer.connection.close()
|
||||
})
|
||||
state.peers = {}
|
||||
state.peers = []
|
||||
},
|
||||
BROADCAST (state, { message, type }) {
|
||||
const data = JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user