socket property
Socket
get
socket
Returns the underlying socket connection @throws { Error } If the socket connection is not initialized
Implementation
Socket get socket {
if (_socket.closed) {
throw Exception(
'Socket Is Not Initialized, You need to connect to the Huddle01 Socket Servers first',
);
}
return _socket;
}