2017-11-13 18:05:35 +09:00
|
|
|
import StreamManager from './stream-manager';
|
2017-11-13 03:47:06 +09:00
|
|
|
import Connection from './server-stream';
|
|
|
|
|
|
2017-11-13 18:05:35 +09:00
|
|
|
export default class ServerStreamManager extends StreamManager<Connection> {
|
2017-11-13 03:47:06 +09:00
|
|
|
public getConnection() {
|
|
|
|
|
if (this.connection == null) {
|
|
|
|
|
this.connection = new Connection();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.connection;
|
|
|
|
|
}
|
|
|
|
|
}
|