inline socket.js client