Skip to main content

StreamEventDispatcher

StreamEventDispatcher

Methods

AddStreamCallback

void AddStreamCallback(uint updateID, StreamUpdateCallback callback)

Add a callback for future updates with a specific update ID. This can only be added once per update ID, and will be automatically removed from the stream event dispatcher after it is invoked.

RemoveStreamCallback

void RemoveStreamCallback(StreamUpdateCallback callback)

Remove a callback from all update IDs.

InvokeCallbacksForUpdateID

void InvokeCallbacksForUpdateID(uint updateID)

Invoke all of the callbacks for a specific update ID. The callbacks will be removed after they invoked.