From 9681347b8e9f6059c3f5f02528e0893bef5acca4 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 18 Sep 2020 12:22:26 -0400 Subject: Move webcards to seperate repo --- webcards/scripts/socket/message.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 webcards/scripts/socket/message.js (limited to 'webcards/scripts/socket/message.js') diff --git a/webcards/scripts/socket/message.js b/webcards/scripts/socket/message.js deleted file mode 100644 index 044027d..0000000 --- a/webcards/scripts/socket/message.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -class Message{ - constructor (type, data) - { - this.t = type; - this.d = data; - } - - stringify () - { - var dat = this.d - if(typeof dat !== "string"){ - dat = JSON.stringify(dat); - } - return JSON.stringify({type: this.t, data: dat}); - } -} -- cgit v1.2.3