From c614e6f5d73b3b4314c7f6abf52260e58cc176ad Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 17 Nov 2017 01:24:44 +0900 Subject: #925, #926, and refactoring --- src/web/app/common/scripts/messaging-stream.ts | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/web/app/common/scripts/messaging-stream.ts (limited to 'src/web/app/common/scripts/messaging-stream.ts') diff --git a/src/web/app/common/scripts/messaging-stream.ts b/src/web/app/common/scripts/messaging-stream.ts deleted file mode 100644 index 306a733274..0000000000 --- a/src/web/app/common/scripts/messaging-stream.ts +++ /dev/null @@ -1,21 +0,0 @@ -import Stream from './stream'; - -/** - * Messaging stream connection - */ -class Connection extends Stream { - constructor(me, otherparty) { - super('messaging', { - i: me.token, - otherparty - }); - - (this as any).on('_connected_', () => { - this.send({ - i: me.token - }); - }); - } -} - -export default Connection; -- cgit v1.2.3-freya