diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-13 19:58:29 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-13 19:58:29 +0900 |
| commit | 0a994e5b9885265873e02b3b3ab9add7ec7e7e6b (patch) | |
| tree | 3945fc92b149c00cfd103792a50811ade2bc9eae /src/web/app/common/scripts | |
| parent | なんかもうめっちゃ変えた (diff) | |
| download | sharkey-0a994e5b9885265873e02b3b3ab9add7ec7e7e6b.tar.gz sharkey-0a994e5b9885265873e02b3b3ab9add7ec7e7e6b.tar.bz2 sharkey-0a994e5b9885265873e02b3b3ab9add7ec7e7e6b.zip | |
Add access log widget
Diffstat (limited to 'src/web/app/common/scripts')
| -rw-r--r-- | src/web/app/common/scripts/requests-stream-manager.ts | 12 | ||||
| -rw-r--r-- | src/web/app/common/scripts/requests-stream.ts | 14 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/web/app/common/scripts/requests-stream-manager.ts b/src/web/app/common/scripts/requests-stream-manager.ts new file mode 100644 index 0000000000..44db913e78 --- /dev/null +++ b/src/web/app/common/scripts/requests-stream-manager.ts @@ -0,0 +1,12 @@ +import StreamManager from './stream-manager'; +import Connection from './requests-stream'; + +export default class RequestsStreamManager extends StreamManager<Connection> { + public getConnection() { + if (this.connection == null) { + this.connection = new Connection(); + } + + return this.connection; + } +} diff --git a/src/web/app/common/scripts/requests-stream.ts b/src/web/app/common/scripts/requests-stream.ts new file mode 100644 index 0000000000..325224587a --- /dev/null +++ b/src/web/app/common/scripts/requests-stream.ts @@ -0,0 +1,14 @@ +'use strict'; + +import Stream from './stream'; + +/** + * Requests stream connection + */ +class Connection extends Stream { + constructor() { + super('requests'); + } +} + +export default Connection; |