|
@@ -25,7 +25,7 @@ export default {
|
|
|
flvjs,
|
|
flvjs,
|
|
|
DPlayer,
|
|
DPlayer,
|
|
|
danmaku: {
|
|
danmaku: {
|
|
|
- api: process.env.VUE_APP_SERVER_URL + '/api/comment/danmaku/',
|
|
|
|
|
|
|
+ api: process.env.VUE_APP_SERVER_URL + '/api/comment/danmaku/'
|
|
|
},
|
|
},
|
|
|
getUrl: true,
|
|
getUrl: true,
|
|
|
userToken: null
|
|
userToken: null
|
|
@@ -47,7 +47,7 @@ export default {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
var sendEvent = false
|
|
var sendEvent = false
|
|
|
if (this.userToken != null) {
|
|
if (this.userToken != null) {
|
|
|
- const wsUrl = 'ws:' + process.env.VUE_APP_SERVER_URL + '/ws/progress?token=' + this.userToken
|
|
|
|
|
|
|
+ const wsUrl = 'wss:' + process.env.VUE_APP_SERVER_URL + '/ws/progress?token=' + this.userToken
|
|
|
this.wsClient = new SocketInstance(wsUrl)
|
|
this.wsClient = new SocketInstance(wsUrl)
|
|
|
this.wsClient.connect()
|
|
this.wsClient.connect()
|
|
|
sendEvent = true
|
|
sendEvent = true
|