wiring sock.js to controller