2017-08-15 09:44:29 +00:00
|
|
|
"use strict";
|
2019-11-02 19:40:59 +00:00
|
|
|
|
2019-11-16 17:24:03 +00:00
|
|
|
import socket from "../socket";
|
|
|
|
import store from "../store";
|
2017-08-15 09:44:29 +00:00
|
|
|
|
2020-03-21 20:55:36 +00:00
|
|
|
socket.on("sessions:list", function (data) {
|
2017-08-15 09:44:29 +00:00
|
|
|
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
|
|
|
});
|