Add support and tests for heap integration into segment io server-side events.