update socket.io to new API