farcall 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/farcall/em_farcall.rb +2 -7
- data/lib/farcall/endpoint.rb +6 -3
- data/lib/farcall/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: 41e00a210ae71f229decaacf525acd0bf43c09cc
|
4
|
+
data.tar.gz: 0ed79e622f5922cabfef6de22c59e8c663acebf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38c7f1b48fa820506bd39d80bfbbd2a98c4ff6de2dd3accbe88b58f1021325e7c4e077e0d73cc1f6ca0c276f229fdec94b12d0f12a03dba7f10e2b07ead51d13
|
7
|
+
data.tar.gz: 6414ec7bd8497f749f89ecbac3a8d6b8cf0c920f9517d605903370777b9a23da7a02b09f1ba5f65dd1c8810f9469dece2532452cc74443e4f6adedc244eda91a
|
data/README.md
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
## News
|
4
4
|
|
5
|
-
*
|
5
|
+
* [RemoteError](http://www.rubydoc.info/gems/farcall/Farcall/RemoteError) now can carry any extended information from the remote party
|
6
|
+
|
7
|
+
* Check the [EmFarcall module](http://www.rubydoc.info/gems/farcall/EmFarcall) which strangely missed in the docs tree! Websocket client and EventMmachine-based server for both websockets and normal sockets just out of the box. See ./javascript folder there is compatible client implementation that works in most browsers with WebSocket support. Just add it to you web project and enjoy.
|
6
8
|
|
7
9
|
* buffering of incoming data in transport to not loose incoming packets beofre Endpoint is connected
|
8
10
|
|
data/lib/farcall/em_farcall.rb
CHANGED
@@ -222,14 +222,9 @@ module EmFarcall
|
|
222
222
|
#
|
223
223
|
class Interface
|
224
224
|
|
225
|
-
# Create interface
|
225
|
+
# Create interface to the endpoint.
|
226
226
|
#
|
227
|
-
#
|
228
|
-
# one connected object, unlike Farcall::Endpoint, which could be connected to several
|
229
|
-
# consumers.
|
230
|
-
#
|
231
|
-
# @param [Farcall::Endpoint|Farcall::Transport] arg either endpoint or a transport
|
232
|
-
# to connect interface to
|
227
|
+
# @param endpoint [Farcall::Endpoint] to connect to.
|
233
228
|
def initialize(endpoint)
|
234
229
|
@endpoint = endpoint
|
235
230
|
end
|
data/lib/farcall/endpoint.rb
CHANGED
@@ -322,11 +322,14 @@ module Farcall
|
|
322
322
|
# Create interface connected to some endpoint ar transpost.
|
323
323
|
#
|
324
324
|
# Please remember that Farcall::Transport instance could be used with only
|
325
|
-
# one connected object, unlike Farcall::Endpoint, which could be connected to several
|
325
|
+
# one connected object, unlike the Farcall::Endpoint, which could be connected to several
|
326
326
|
# consumers.
|
327
327
|
#
|
328
|
-
# @param
|
329
|
-
#
|
328
|
+
# @param endpoint [Farcall::Endpoint] endpoint to connecto to. If not provided, then interface
|
329
|
+
# will try to use _transport_ or create it using params.
|
330
|
+
# @param transport [Farcall::Transport] transport what to use
|
331
|
+
# @param params [Hash] used to create transport when neither _endpoint_ not _transport_ present
|
332
|
+
#
|
330
333
|
def initialize endpoint: nil, transport: nil, provider: nil, **params
|
331
334
|
@endpoint = if endpoint
|
332
335
|
endpoint
|
data/lib/farcall/version.rb
CHANGED