I determined this is what it was trying to do because with the first version, the closeEventCallback was being called with the error message typically sent to errCallback.
I do realize it is a mess with so many alternate syntax. I am planning to make a non backward compatible change where all options are set and then connect is called without any parameters.
Documentation says that these should both work.
However, in my code ONLY the SECOND one works.
So I converted:
to this:
I determined this is what it was trying to do because with the first version, the closeEventCallback was being called with the error message typically sent to errCallback.