Send user actions to server via socket.io