use jsocket.js on client