Add option to pass socketio instead of relying solely on the preset glob...

...al.