Authored by 李奇

fixed:临时代吗删除

... ... @@ -1077,6 +1077,8 @@ $document.on('click', function (e) {
// 重新连线
$msgList.on('click', '.reconnect', function() {
// 共通处理
beforeSendMsg();
socketChat.init(Object.assign(originConf, {
onOpen: function() {
console.log('websocket opened!');
... ... @@ -1138,26 +1140,3 @@ $panelMainBody.scroll(function() {
processInfo.scrollLoad && loading && hasMore && fetchHistoryMsg();
});
// TODO
// socketChat.init(Object.assign(socketConf, {
// onOpen: function() {
// console.log('websocket opened!');
// },
//
// onMessage: function(e) {
// var received = JSON.parse(e.data);
//
// socketConfCM.conversationId = received.newConversationId !== 0 ?
// received.newConversationId :
// received.conversationId;
//
// // 保存过程中信息
// getMessage(received);
// },
//
// onClose: function() {
// console.log('websocket closed!');
// }
// }));
... ...