2017-08-15 09:44:29 +00:00
|
|
|
"use strict";
|
|
|
|
const socket = require("../socket");
|
2019-03-03 17:47:49 +00:00
|
|
|
const {vueApp} = require("../vue");
|
2017-08-15 09:44:29 +00:00
|
|
|
|
|
|
|
socket.on("sessions:list", function(data) {
|
|
|
|
data.sort((a, b) => b.lastUse - a.lastUse);
|
2019-03-03 17:47:49 +00:00
|
|
|
vueApp.$store.commit("sessions", data);
|
2017-08-15 09:44:29 +00:00
|
|
|
});
|