imported "sockethub.js" from dogtalk