提交 1837a1b4 authored 作者: GOD_ZYX's avatar GOD_ZYX

update

上级 64e58ee4
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -21,7 +21,7 @@ export default {
methods: {
createSocket () {
let that = this
let socket = new WebSocket('ws://' + window.location.host.replace(/\:.*$/, ':12002')) // eslint-disable-line
let socket = new WebSocket('wss://' + window.location.host.replace(/\:.*$/, '')) // eslint-disable-line
socket.binaryType = 'arraybuffer'
socket.onmessage = function (msg) {
......
......@@ -15,7 +15,14 @@ const sendMsg = (req, res) => {
} else {
let _conArr = []
for (let i = 0; i < nsCoonPool.length; i++) {
_conArr.push({ auth: nsCoonPool[i].key })
_conArr.push({
auth: nsCoonPool[i].key,
name: nsCoonPool[i].name || '',
iphone: nsCoonPool[i].iphone || '',
email: nsCoonPool[i].email || '',
id: nsCoonPool[i].id || '',
auth_key: nsCoonPool[i].auth_key || ''
})
}
res.status(200).send({ linkCount: nsCoonPool.length, connections: _conArr })
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论