[lib.channel-controller] fix never closed() WebSocket
This commit is contained in:
parent
c1be9fce4e
commit
e8ce193cc0
|
@ -48,6 +48,7 @@ export default class ChannelController{
|
||||||
gs.get.room.fetch();
|
gs.get.room.fetch();
|
||||||
|
|
||||||
/* (6) Open channel websocket */
|
/* (6) Open channel websocket */
|
||||||
|
( window.csock != null ) && csock.close();
|
||||||
window.csock = new wscd(`wss://ws.douscord.xdrm.io/channel/${channel.id}`, { token: auth.token });
|
window.csock = new wscd(`wss://ws.douscord.xdrm.io/channel/${channel.id}`, { token: auth.token });
|
||||||
csock.bind();
|
csock.bind();
|
||||||
csock.onreceive = (_dat) => {
|
csock.onreceive = (_dat) => {
|
||||||
|
|
Loading…
Reference in New Issue