summaryrefslogtreecommitdiff
path: root/webcards/scripts/socket/message.js
diff options
context:
space:
mode:
authorKyle Gunger <corechg@gmail.com>2020-09-18 12:22:26 -0400
committerKyle Gunger <corechg@gmail.com>2020-09-18 12:22:26 -0400
commit9681347b8e9f6059c3f5f02528e0893bef5acca4 (patch)
tree16e5dff45804d13abeda17041668eff0485483c7 /webcards/scripts/socket/message.js
parent2ce432034eb35f763182de03fb7b42d2a07afc4b (diff)
Move webcards to seperate repo
Diffstat (limited to 'webcards/scripts/socket/message.js')
-rw-r--r--webcards/scripts/socket/message.js18
1 files changed, 0 insertions, 18 deletions
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});
- }
-}