bot_mob 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bot_mob/bot.rb +3 -3
- data/lib/bot_mob/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 983346edacc2db6076a7ba621d90d7d0d94237e9
|
4
|
+
data.tar.gz: 1d755d5d4503e6c9566b2c6216500974a05d8fd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cf9f98830e091d36c28e724ed52f8f8c35ba6b38bf0536e92150bff68f5aeb14b37cbf2344bb287befa106c882cddac96b2a89d8498c604468c8d9a40a09a18
|
7
|
+
data.tar.gz: 7759297b12eed2c389ae360305063857046f00c32e9ca147057fe61a5c3ed2f5b4adf8dcdc28496a4a1c8515a4a53fd4938c3bc15f94387751f113f89eb02ff5
|
data/lib/bot_mob/bot.rb
CHANGED
@@ -92,9 +92,9 @@ module BotMob
|
|
92
92
|
def setup
|
93
93
|
@state = :waiting
|
94
94
|
|
95
|
-
client.on
|
96
|
-
client.on
|
97
|
-
client.on
|
95
|
+
client.on(:hello) { set_state(:connected) }
|
96
|
+
client.on(:close) { set_state(:disconnecting) }
|
97
|
+
client.on(:closed) { set_state(:closed) }
|
98
98
|
|
99
99
|
client.on :message do |data|
|
100
100
|
message = BotMob::InboundMessage.new(:websocket, data)
|
data/lib/bot_mob/version.rb
CHANGED