new websocket 增加token

This commit is contained in:
unknown
2022-05-18 15:43:05 +08:00
parent d7d18f0fea
commit 360cc0d456

View File

@ -129,7 +129,7 @@ const conversation = (props) => {
//const bizServiceCustomService = 'http://10.242.31.158:8100/api/biz-customer-service'
var addr = `${REACT_APP_CUSTOMERSERVICE_WS_REDIRECT}` + '/websocketClient/'
let no = kfType==1?'EMPTY':agentNumber
var ws = new WebSocket(addr+id+'/'+no);
var ws = new WebSocket(addr+id+'/'+no, [sessionStorage.getItem('Authorization')]);
// 建立 web socket 连接成功触发事件
ws.onopen = function () {
console.log("Connection open ...");