|
@@ -187,7 +187,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
sockets: {
|
|
|
- reconnect: function(){
|
|
|
+ reconnect: function() {
|
|
|
this.$socket.emit("userData", {
|
|
|
user: {
|
|
|
uid: this.clientUid,
|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
lobby_uid: this.lobbyProp.uid
|
|
|
},
|
|
|
lobbies_uid_list: [`${this.lobbyProp.uid}`]
|
|
|
- })
|
|
|
+ });
|
|
|
|
|
|
if (this.meetingUid) {
|
|
|
this.$socket.emit("meetingJoined", {
|
|
@@ -211,7 +211,7 @@ export default {
|
|
|
type: "STRANGER",
|
|
|
uid: this.clientUid
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -367,6 +367,21 @@ export default {
|
|
|
uid: this.clientUid
|
|
|
}
|
|
|
});
|
|
|
+ $.ajax({
|
|
|
+ url: "/post-to-api-ajax",
|
|
|
+ method: "POST",
|
|
|
+ headers: {
|
|
|
+ "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content")
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ _api: "/api/meeting/startLobbyCall",
|
|
|
+ uid: this.meetingUid,
|
|
|
+ lobbyUid: this.lobbyProp.uid
|
|
|
+ },
|
|
|
+ success: data => {
|
|
|
+ if (!data.success) console.log(data.message);
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
/* Copied */
|
|
@@ -693,7 +708,7 @@ export default {
|
|
|
lobby_uid: this.lobbyProp.uid
|
|
|
},
|
|
|
lobbies_uid_list: [`${this.lobbyProp.uid}`]
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|