getSocket property
Socket?
get
getSocket
Gets the reference of the socket in the class
Implementation
Socket? get getSocket {
if (_socket == null) config.logger.e('Socket not initialized');
return _socket;
}