brm_client 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/brm_client.gemspec +1 -1
- data/lib/brm_client/gateway/stomp.rb +4 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/brm_client.gemspec
CHANGED
@@ -7,15 +7,16 @@ module BrmClient
|
|
7
7
|
|
8
8
|
def initialize opts
|
9
9
|
hosts = opts[:hosts] || [ opts[:host] ]
|
10
|
-
|
11
|
-
@
|
10
|
+
hosts.map! &:to_options
|
11
|
+
@client = ::Stomp::Client.new({ :hosts => hosts })
|
12
|
+
@queue = "/queue/#{opts[:application]}"
|
12
13
|
end
|
13
14
|
|
14
15
|
def disconnect
|
15
16
|
end
|
16
17
|
|
17
18
|
def send_event e
|
18
|
-
@client.
|
19
|
+
@client.publish(@queue, e.to_json)
|
19
20
|
end
|
20
21
|
|
21
22
|
end
|