up
chenyc
2022-07-05 46cbec2c883c09ec664e476a4ca9db83df5e0ce1
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)