onClose property

A stream that can be listened to in order to know when this SockJS Client has closed.

Only a single SockJSCloseEvent will be emitted from this stream.

The event will include the close code and reason, if available.

Implementation

Stream<SockJSCloseEvent> get onClose => _onCloseController.stream;