2017-08-15 09:44:29 +00:00
|
|
|
"use strict";
|
2019-11-02 19:40:59 +00:00
|
|
|
|
2017-08-15 09:44:29 +00:00
|
|
|
const socket = require("../socket");
|
2019-11-02 19:40:59 +00:00
|
|
|
const store = require("../store").default;
|
2017-08-15 09:44:29 +00:00
|
|
|
|
|
|
|
socket.on("sessions:list", function(data) {
|
|
|
|
data.sort((a, b) => b.lastUse - a.lastUse);
|
2019-11-02 19:40:59 +00:00
|
|
|
store.commit("sessions", data);
|
2017-08-15 09:44:29 +00:00
|
|
|
});
|