extended client server communication

This commit is contained in:
logsol 2012-07-08 04:29:14 +02:00
parent 94f63fc7b2
commit 81d2aa4ddc
12 changed files with 156 additions and 86 deletions

View file

@ -1,13 +1,12 @@
define(function() {
function Parser() {
}
var Parser = {};
Parser.prototype.encode = function(message){
Parser.encode = function(message){
return JSON.stringify(message);
}
Parser.prototype.decode = function(message){
Parser.decode = function(message){
return JSON.parse(message);
}