feat: 集群环境websocket消息

This commit is contained in:
fit2cloud-chenyw
2022-04-13 18:30:31 +08:00
parent d7521f8861
commit 0c16ca38e4
18 changed files with 355 additions and 36 deletions

View File

@@ -46,11 +46,12 @@ class DeWebsocket {
}
connection() {
const socket = new SockJS(this.ws_url)
/* const socket = new SockJS('http://localhost:8081' + this.ws_url) */
if (!this.isLoginStatu()) {
return
}
const socket = new SockJS(this.ws_url + '?userId=' + store.state.user.user.userId)
/* const socket = new SockJS('http://localhost:8081' + this.ws_url) */
this.client = Stomp.over(socket)
const heads = {
/* Authorization: '', */