connectionState property
String
get
connectionState
Returns the current state of the socket.
Implementation
String get connectionState {
switch (connState) {
case SocketStates.connecting:
return 'connecting';
case SocketStates.open:
return 'open';
case SocketStates.closing:
return 'closing';
case SocketStates.disconnected:
return 'disconnected';
case SocketStates.closed:
default:
return 'closed';
}
}