Fix possible socket io initialization bug and upgrade socket io npm version.