hardlounge/client/js/socket-events/sessions_list.js
2020-03-21 22:55:36 +02:00

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);
});