Java sdk 事件相关的api无效

问题描述

我在集成了Java的sdk后,使用如下代码
public static void main(String[] args) throws InterruptedException {
String appKey=“6306d99279ac21078b3axxxx”;
String appsec=“3d41e026723000065ed4d47deea1xxxx”;
ManagementClientOptions clientOptions = new ManagementClientOptions();
clientOptions.setAccessKeyId(appKey);
clientOptions.setAccessKeySecret(appsec);
clientOptions.setWebsocketHost(“wss://openevent.authing.cn”);
ManagementClient managementClient = new ManagementClient(clientOptions);

    managementClient.subEvent("authing.department.deleted", new Receiver() {
        @Override
        public void onReceiverMessage(String msg) {
            if (msg != null) {
                log.info("====" + msg);
            }
        }
    });
    while (true) {
        Thread.sleep(1000);
    }
}

直接响应:
onOpen
onClose,i=1006,s=,b=true
部门删除的事件监听不到,应该是websock直接断开了,也不知道具体的导致断开的原因,key和secret应该没有错

重现步骤

附加信息

  • Version:
  • Platform:

你使用的 sdk 版本是?