update the socket.io api.
Merge remote-tracking branch 'origin/master'