10 lines
205 B
JavaScript
10 lines
205 B
JavaScript
"use strict";
|
|
|
|
import socket from "../socket";
|
|
import store from "../store";
|
|
|
|
socket.on("sessions:list", function (data) {
|
|
data.sort((a, b) => b.lastUse - a.lastUse);
|
|
store.commit("sessions", data);
|
|
});
|