deleting socket on logout

This commit is contained in:
Jared Tabor
2017-09-14 15:45:35 -07:00
parent 9cf683ea75
commit bd95197709

View File

@@ -119,6 +119,7 @@ export default
disconnect: function(){ disconnect: function(){
if(this.socket){ if(this.socket){
this.socket.close(); this.socket.close();
delete this.socket;
} }
}, },
subscribe: function(state){ subscribe: function(state){