hardlounge/client/js/socket-events/msg_special.js

11 lines
266 B
JavaScript
Raw Normal View History

2018-07-10 05:16:24 -04:00
"use strict";
const socket = require("../socket");
2019-08-04 07:03:04 -04:00
const {vueApp, findChannel} = require("../vue");
2018-07-10 05:16:24 -04:00
socket.on("msg:special", function(data) {
2019-10-25 17:37:40 -04:00
const channel = findChannel(data.chan);
channel.channel.data = data.data;
vueApp.switchToChannel(channel.channel);
2018-07-10 05:16:24 -04:00
});