Use generic $socket
Broadcast to all clients
Remove socket.io binding
Remove unused code.