Attach event handler callback that needs to be invoked when the messaging stream state changes to 'closed'.
The event handler callback.
The unique event handler id that was generated by the SDK when the event handler was attached.
Attach event handler callback that needs to be invoked when the messaging stream state changes to 'closed'.