fixed update socketid since npm no longer needs to pass socketid