Closed fuzhaohui200 closed 6 years ago
I'm sorry but you should open your question on stack overflow or vuejs or whatever board related to your server engine.
Websocket are pending opened socket, if it is closed by your websocket server or any middleware / webserver between the server and the client you will be disconnected.
Hi, vue2.0 use this client always Whoops! Lost connection Can you help m ?
My Code : Vue.use(webstomp) Vue.use(Router)
let client = webstomp.client('ws://192.168.31.191:8080/gate/endpoint/websocket', { heartbeat: {incoming: 2000, outgoing: 2000}, debug: true }) client.connect({}, m => { console.log(m) if (client.connected) { client.subscribe('/user/111111/auth', (message) => { message.ack() console.log('#############' + JSON.stringify(message)) }, {'ack': 'client'}) } }, e => { console.log(e) })