Refactoring

This commit is contained in:
syuilo 2018-07-09 21:15:49 +09:00
parent 8b3cb850a5
commit 9201b5318b
6 changed files with 19 additions and 19 deletions

View file

@ -1,31 +0,0 @@
import StreamManager from './stream-manager';
import Stream from './stream';
import MiOS from '../../../mios';
export class ReversiStream extends Stream {
constructor(os: MiOS, me) {
super(os, 'reversi', {
i: me.token
});
}
}
export class ReversiStreamManager extends StreamManager<ReversiStream> {
private me;
private os: MiOS;
constructor(os: MiOS, me) {
super();
this.me = me;
this.os = os;
}
public getConnection() {
if (this.connection == null) {
this.connection = new ReversiStream(this.os, this.me);
}
return this.connection;
}
}