Fix bug and clean up

This commit is contained in:
syuilo 2018-10-20 11:19:27 +09:00
parent ae2e47f6a9
commit 71c9964e19
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -1,6 +1,5 @@
import autobind from 'autobind-decorator';
import * as websocket from 'websocket';
import * as debug from 'debug';
import User, { IUser } from '../../../models/user';
import readNotification from '../common/read-notification';
@ -12,8 +11,6 @@ import Channel from './channel';
import channels from './channels';
import { EventEmitter } from 'events';
const log = debug('misskey');
/**
* Main stream connection
*/
@ -147,7 +144,6 @@ export default class Connection {
@autobind
private onChannelConnectRequested(payload: any) {
const { channel, id, params, pong } = payload;
log(`CH CONNECT: ${id} ${channel} by @${this.user.username}`);
this.connectChannel(id, params, channel, pong);
}
@ -157,7 +153,6 @@ export default class Connection {
@autobind
private onChannelDisconnectRequested(payload: any) {
const { id } = payload;
log(`CH DISCONNECT: ${id} by @${this.user.username}`);
this.disconnectChannel(id);
}