summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming/drive.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/common/scripts/streaming/drive.ts')
-rw-r--r--src/web/app/common/scripts/streaming/drive.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/web/app/common/scripts/streaming/drive.ts b/src/web/app/common/scripts/streaming/drive.ts
new file mode 100644
index 0000000000..5805e58033
--- /dev/null
+++ b/src/web/app/common/scripts/streaming/drive.ts
@@ -0,0 +1,31 @@
+import Stream from './stream';
+import StreamManager from './stream-manager';
+
+/**
+ * Drive stream connection
+ */
+export class DriveStream extends Stream {
+ constructor(me) {
+ super('drive', {
+ i: me.token
+ });
+ }
+}
+
+export class DriveStreamManager extends StreamManager<DriveStream> {
+ private me;
+
+ constructor(me) {
+ super();
+
+ this.me = me;
+ }
+
+ public getConnection() {
+ if (this.connection == null) {
+ this.connection = new DriveStream(this.me);
+ }
+
+ return this.connection;
+ }
+}