summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-13 19:58:29 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-13 19:58:29 +0900
commit0a994e5b9885265873e02b3b3ab9add7ec7e7e6b (patch)
tree3945fc92b149c00cfd103792a50811ade2bc9eae /src/web/app/common/scripts
parentなんかもうめっちゃ変えた (diff)
downloadsharkey-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.ts12
-rw-r--r--src/web/app/common/scripts/requests-stream.ts14
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;