Skip Menu |

This queue is for tickets about the Net-STOMP-Client CPAN distribution.

Report information
The Basics
Id: 73060
Status: resolved
Priority: 0/
Queue: Net-STOMP-Client

People
Owner: Nobody in particular
Requestors: TJC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.3
Fixed in: 1.4



Subject: Incorrect documentation for unsubscribe
In Net::STOMP::Client the POD gives this example of using unsubscribe: $stomp->unsubscribe(destination => "/queue/test"); However, unsubscribe actually takes an "id" parameter, not a destination parameter.
I should mention that the subscribe example seems incorrect too. It must include an 'id' parameter.
Toby, This is not really incorrect since it works fine with STOMP 1.0. Only STOMP 1.1 requires the "id" header field. Anyway, I have modified the example so that the same code works fine with STOMP 1.0 and STOMP 1.1. The doc now contains: # subscribe to the given queue $stomp->subscribe( destination => "/queue/test", id => "testsub", # required in STOMP 1.1 ack => "client", # client side acknowledgment ); [...] $stomp->unsubscribe(id => "testsub"); This will be part of the next release. Thanks for your report.
The patch is part of 1.4, just released in CPAN.