new websocket 增加token
This commit is contained in:
@ -129,7 +129,7 @@ const conversation = (props) => {
|
|||||||
//const bizServiceCustomService = 'http://10.242.31.158:8100/api/biz-customer-service'
|
//const bizServiceCustomService = 'http://10.242.31.158:8100/api/biz-customer-service'
|
||||||
var addr = `${REACT_APP_CUSTOMERSERVICE_WS_REDIRECT}` + '/websocketClient/'
|
var addr = `${REACT_APP_CUSTOMERSERVICE_WS_REDIRECT}` + '/websocketClient/'
|
||||||
let no = kfType==1?'EMPTY':agentNumber
|
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 连接成功触发事件
|
// 建立 web socket 连接成功触发事件
|
||||||
ws.onopen = function () {
|
ws.onopen = function () {
|
||||||
console.log("Connection open ...");
|
console.log("Connection open ...");
|
||||||
|
Reference in New Issue
Block a user