var RETERR = 4;
function AfbWsItf(base, onopen, onabort, ctx) {
var RETERR = 4;
function AfbWsItf(base, onopen, onabort, ctx) {
this.ws.onopen = onopen.bind(this);
this.ws.onerror = onerror.bind(this);
this.ws.onclose = onclose.bind(this);
this.ws.onopen = onopen.bind(this);
this.ws.onerror = onerror.bind(this);
this.ws.onclose = onclose.bind(this);