Skip to content

How can we subscribe to a rabbitmq exchange and then create a queue to recieve the messages? #7

@shv07

Description

@shv07

I tried using the approach I use in Stomp JS but it does not work here:-

  var subsHeaders = new Dictionary<string, string>
  {
	  { "x-queue-name", "newqueue"},
	  { "x-message-ttl", "60000" },
	  {"'x-expires", "300000" }
  };
  
  await client.SubscribeAsync("exchange/<exchange-name>/<routing-key>", subsHeaders, async (sender, stompMessage) =>
  {
	  await client.AckAsync(stompMessage.Headers["ack"]);
	  
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions