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)