摘要:
@Configuration("otcChatWebSocketConfig") @EnableWebSocket public class OtcChatWebSocketConfig implements WebSocketConfigurer { public static final Logger log = LoggerFactory.getLogger(OtcChatWeb... 阅读全文
摘要:
data () { return { ws: null,//建立的连接 lockReconnect: false,//是否真正建立连接 timeout: 28*1000,//30秒一次心跳 timeoutObj: null,//心跳心跳倒计时 serverTimeoutObj: null,//心跳倒计时 timeoutnum: null,//断开 重连倒计时 } }, created() { th 阅读全文