summaryrefslogtreecommitdiff
path: root/webcards/scripts/socket/message.js
diff options
context:
space:
mode:
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});
- }
-}