Небольшая оптимизация по памяти: каждый пакет из WS удаляет старый пакет

This commit is contained in:
saber-nyan 2019-05-17 22:26:57 +03:00
parent 8faa5bdc45
commit 595dc3b20f
No known key found for this signature in database
GPG Key ID: 7B069E9C295E6B4A

View File

@ -125,6 +125,7 @@ export default {
},
onGotNewStream(stream) {
console.debug('got new stream from WS!', stream);
this.streams.pop();
this.streams.unshift(stream);
},
},