hardlounge/client/js/socket-events/msg_special.js
2019-11-25 20:12:54 +02:00

12 lines
310 B
JavaScript

"use strict";
const socket = require("../socket");
const {vueApp} = require("../vue");
const store = require("../store").default;
socket.on("msg:special", function(data) {
const channel = store.getters.findChannel(data.chan);
channel.channel.data = data.data;
vueApp.switchToChannel(channel.channel);
});