thelounge/client/js/socket-events/sessions_list.js
2019-11-25 20:13:12 +02:00

9 lines
204 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);
});