import { EventStream } from "https://deno.land/x/openai@v4.59.0/lib/EventStream.ts";
Adds the listener function to the end of the listeners array for the event. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of event and listener will result in the listener being added, and called, multiple times.
Parameters
event: Event
listener: EventListener<EventTypes, Event>