host method
Returns UhstHost which able to:
- listen messages from UhstSocket
- broadcast messages to all subscsribed Client UhstSocket
Implementation
UhstHost host({String? hostId}) {
final host = UhstHost.create(
relayClient: _relayClient,
socketProvider: _socketProvider,
hostId: hostId,
debug: _debug,
);
return host;
}