extracting socketio and placing in a wrapper