data=typeofArrayBuffer!=='undefined'&&evt.datainstanceofArrayBuffer?(arr=newUint8Array(evt.data),typeof_this.debug==="function"?_this.debug("--- got data length: "+arr.length):void0,((function(){
var_i,_len,_results;
_results=[];
for(_i=0,_len=arr.length;_i<_len;_i++){
c=arr[_i];
_results.push(String.fromCharCode(c));
}
return_results;
})()).join('')):evt.data;
_this.serverActivity=now();
if(data===Byte.LF){
if(typeof_this.debug==="function"){
_this.debug("<<< PONG");
}
return;
}
if(typeof_this.debug==="function"){
_this.debug("<<< "+data);
}
_ref=Frame.unmarshall(data);
_results=[];
for(_i=0,_len=_ref.length;_i<_len;_i++){
frame=_ref[_i];
switch(frame.command){
case"CONNECTED":
if(typeof_this.debug==="function"){
_this.debug("connected to server "+frame.headers.server);