selfsdk 0.0.210 → 0.0.211
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crypto.rb +1 -0
- data/lib/messaging.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a1963ba30a0e3805ba038837fc8c4cbdabea43463faf7682ae7562b0aae230d
|
4
|
+
data.tar.gz: 128af12164985e2cfd838b6d00e847be098739ce2a67152f000b34cf700e73ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ecffbd49ffb189b63754779d8057876171abe70311b5603e10391ef5240b3f591e6a54dbfce76cab3bef46d19f0be2907542d1f649a2d9a32cfe3d287beede
|
7
|
+
data.tar.gz: f6dbe1b68052d3f7eb17983d5ec6bdf966e9d87644c503855402f9cf841a3c92906e29825f2d3192374f24e81858763943947170a909a0b370fa275a3aa50b27
|
data/lib/crypto.rb
CHANGED
data/lib/messaging.rb
CHANGED
@@ -67,7 +67,6 @@ module SelfSDK
|
|
67
67
|
# This is kind of a hack to catch some corner cases where
|
68
68
|
# the websocket client is not aware it has been disconnected.
|
69
69
|
def ping
|
70
|
-
SelfSDK.logger.debug "ping"
|
71
70
|
@ws.ping 'ping'
|
72
71
|
end
|
73
72
|
|
@@ -192,6 +191,10 @@ module SelfSDK
|
|
192
191
|
end
|
193
192
|
end
|
194
193
|
|
194
|
+
def close
|
195
|
+
@ws.close
|
196
|
+
end
|
197
|
+
|
195
198
|
# Checks if the session with a specified identity / device is already created.
|
196
199
|
def session?(identifier, device)
|
197
200
|
path = @encryption_client.session_path(identifier, device)
|