[lib.channel-controller] fix never closed() WebSocket

This commit is contained in:
xdrm-brackets 2018-04-03 18:00:20 +02:00
parent c1be9fce4e
commit e8ce193cc0
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ export default class ChannelController{
gs.get.room.fetch();
/* (6) Open channel websocket */
( window.csock != null ) && csock.close();
window.csock = new wscd(`wss://ws.douscord.xdrm.io/channel/${channel.id}`, { token: auth.token });
csock.bind();
csock.onreceive = (_dat) => {