const REGISTER = 0 //Register a user
//Text-Messaging Commands
const BMESSAGE = 1 //Broadcast-Message
const UMESSAGE = 2 //Unicast-Message
const MMESSAGE = 3 //Multicast-Message
	
const BLOGIN = 4 //Broadcast-Login
const BLOGOUT = 5 //Broadcast-Logout

function Command(type, value){
	this.Type = type;
	this.Value = value;
}

function Encode(obj){
	if(obj.Type && obj.Value){
		return new Command(obj.Type, obj.Value);
	}
	return 'undefined';
}

Command.prototype.Send = function(websocket){
	this.value = window.btoa(this.value);
	websocket.send(JSON.stringify(this));
}
@@ -488,25 +488,25 @@
 ket)%7B%0A%09this.
-v
+V
 alue = windo
@@ -517,17 +517,17 @@
 oa(this.
-v
+V
 alue);%0A%09

fix for api