up
chenyc
2022-07-05 c7ac559bab9890e6f0d4b81ffbaaf112a7346431
src/samples/sockteStomp.ts
@@ -135,7 +135,9 @@
const connectCallback=function(){
    const pcName= os.hostname()
    // 订阅患者信息服务
    stompClient.subscribe(`/queue/patient/info/${pcName}`,PatientCallback)
    if(stompClient!==null){
        stompClient.subscribe(`/queue/patient/info/${pcName}`,PatientCallback)
    }
    console.log("链接成功",stompClient,pcName)
    // 更新sockte链接状态
    sockteStore().setsockteIsLink(true)