allow socketIoUrl to be passed in