change connect to attach to allow for more flexable socketio setup