Monkey patch socketio client to insert an event loop