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

12 lines
315 B
JavaScript

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