(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["2d0a4d72"],{"07c8":function(t,n,i){"use strict";i.r(n);var e=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticClass:"page-content"},[t._v("socketTest")])},o=[],c=i("cc7d"),s=i.n(c),r=i("74d1"),u=i.n(r),a={name:"socketTest",data:function(){return{stompClient:"",timer:""}},methods:{initWebSocket:function(){this.connection()},connection:function(){var t=this,n=new s.a(this.CommonConfig.socketConfig.SOCKET_PATH);this.stompClient=u.a.over(n);var i={Authorization:""};this.stompClient.connect(i,(function(){var n=t.stompClient.subscribe(t.CommonConfig.socketConfig.SOCKET_TOPIC.test.subscribeTopic,(function(n){"bulletScreen"===n.body&&t.closeUbscribeTopic()}),i);n.unsubscribe()}),(function(t){}))},closeUbscribeTopic:function(){this.stompClient.unsubscribe(this.CommonConfig.socketConfig.SOCKET_TOPIC.test.subscribeTopic)},disconnect:function(){this.stompClient&&this.stompClient.disconnect()}},created:function(){this.initWebSocket()},beforeDestroy:function(){this.disconnect(),clearInterval(this.timer)}},b=a,C=i("2877"),f=Object(C["a"])(b,e,o,!1,null,"30465380",null);n["default"]=f.exports}}]);