connectStomp method
Creates a STOMP client connection to a peer
Implementation
Future<StompClient> connectStomp({
required PeerId peerId,
required String hostName,
String? login,
String? passcode,
Duration? timeout,
}) async {
final client = StompClient(
host: this,
serverPeerId: peerId,
hostName: hostName,
login: login,
passcode: passcode,
timeout: timeout ?? StompConstants.defaultTimeout,
);
await client.connect();
return client;
}