change createEventSource function to type EventSourceProcessor
Complete EventSource message sink chain.