Add access log widget
This commit is contained in:
12
src/web/app/common/scripts/requests-stream-manager.ts
Normal file
12
src/web/app/common/scripts/requests-stream-manager.ts
Normal 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;
|
||||
}
|
||||
}
|
14
src/web/app/common/scripts/requests-stream.ts
Normal file
14
src/web/app/common/scripts/requests-stream.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
import Stream from './stream';
|
||||
|
||||
/**
|
||||
* Requests stream connection
|
||||
*/
|
||||
class Connection extends Stream {
|
||||
constructor() {
|
||||
super('requests');
|
||||
}
|
||||
}
|
||||
|
||||
export default Connection;
|
Reference in New Issue
Block a user