mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
15 lines
No EOL
229 B
JavaScript
15 lines
No EOL
229 B
JavaScript
define(function() {
|
|
|
|
function Parser() {
|
|
}
|
|
|
|
Parser.prototype.encode = function(message){
|
|
return JSON.stringify(message);
|
|
}
|
|
|
|
Parser.prototype.decode = function(message){
|
|
return JSON.parse(message);
|
|
}
|
|
|
|
return Parser;
|
|
}); |