Class | Connection11Example1 |
In: |
examples/conn11_ex1.rb
|
Parent: | Object |
Purpose: to demonstrate a connect and disconnect sequence using Stomp 1.1.
Note: this example assumes that you have at least the 1.2.0 gem release installed.
When you:
then your code must specifically request that environment.
You need to supply all of the normal values expected of course:
Additionaly you are required to supply the 1.1 connection data as documented in the Stomp 1.1 specification: stomp.github.com/stomp-specification-1.1.html You are urged to become familiar with the spec. It is a short document.
This includes:
You may optionally specify other 1.1 data:
Using the stomp gem, you can specify this data in the "connect_headers" Hash parameter or a paramaterized connection request. This example uses a parameterized request.