Add access log widget

This commit is contained in:
syuilo
2017-11-13 19:58:29 +09:00
parent bc9a8283c6
commit 0a994e5b98
12 changed files with 181 additions and 0 deletions

View File

@@ -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;
}
}

View File

@@ -0,0 +1,14 @@
'use strict';
import Stream from './stream';
/**
* Requests stream connection
*/
class Connection extends Stream {
constructor() {
super('requests');
}
}
export default Connection;