aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--draughts/public/javascripts/messages.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/draughts/public/javascripts/messages.js b/draughts/public/javascripts/messages.js
new file mode 100644
index 0000000..f532d58
--- /dev/null
+++ b/draughts/public/javascripts/messages.js
@@ -0,0 +1,5 @@
+(function (exports) {
+ exports.START = 0 // Server -> Client :: The game has started
+ exports.RESIGN = 1 // Server -> Client :: The opponent resigned
+ exports.DISCONNECT = 2 // Server -> Client :: The opponent disconnected
+})(typeof(exports) == "undefined" ? (this.Messages = {}) : exports)