onOpen property
Stream<SockJSOpenEvent>
onOpen
A stream that can be listened to in order to know when this SockJS Client has successfully connected to the server.
Only a single SockJSOpenEvent
will be emitted from this stream unless a
connection cannot be made, in which case no events will be emitted at all.
The event will include the selected transport as well as the server URL.
Implementation
Stream<SockJSOpenEvent> get onOpen => _onOpenController.stream;