VUE的websocket如何清除buffer

VUE的websocket执行close方法后,下次连接会接收到上次后台发的数据,应该是buffer里存储的数据,如何再vue侧清除buffer

close: function() {
if (this.socket) {
this.socket.send('close');
this.socket.close()
}

https://www.jianshu.com/p/99fef260f9eb