Fixed error in lib/client/ngSocket.js and update example