1.6K Star 8.6K Fork 4K

GVPdromara / open-capacity-platform

 / 详情

是否考虑websocket集成和集群文档?毕竟现在还没有消息推送提醒

已完成
创建于  
2021-10-20 17:11
暂无描述。

评论 (1)

朱仙 创建了任务
朱仙 关联仓库设置为jeecp/open-capacity-platform
展开全部操作日志

账号多端限制登录
https://gitee.com/dromara/open-capacity-platform/blob/master/web-portal/back-center/src/main/view/static/index.html

//websocket 踢出消息
function kickOut(token) {
var host = config.base_server + "api-auth"; // 带有端口号
var socket = new SockJS( host + "/websocket");
stompClient = Stomp.over(socket);
stompClient.connect({ 'access_token': token.access_token }, function(frame) {
stompClient.subscribe('/queue/' + token.access_token + '/remind', function(response) {
debugger;
//layer 右下脚弹窗
layer.open({
type: 1,
skin: 'layui-layer-demo', //样式类名
title: '踢出提示',
closeBtn: 1, //不显示关闭按钮
shade: [0],
area: ['250px', '150px'],
offset: 'rb', //右下角弹出
time: 10000, //2秒后自动关闭
anim: 2,
content: response.body
});

			});
			 
		}, function(error) {
			wsCreateHandler && clearTimeout(wsCreateHandler);
			wsCreateHandler = setTimeout(function() {
				console.log("重连...");
				connect(token);
				console.log("重连完成");
			}, 1000);
		}
		)
	}
someday 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
1441068 somedaymail 1578951542
Java
1
https://gitee.com/dromara/open-capacity-platform.git
git@gitee.com:dromara/open-capacity-platform.git
dromara
open-capacity-platform
open-capacity-platform

搜索帮助

53164aa7 5694891 3bd8fe86 5694891