firehose 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,10 +15,12 @@ class Firehose.LongPoll extends Firehose.Transport
|
|
|
15
15
|
|
|
16
16
|
constructor: (args) ->
|
|
17
17
|
super args
|
|
18
|
+
|
|
19
|
+
@config.ssl ?= false
|
|
18
20
|
# Configrations specifically for web sockets
|
|
19
21
|
@config.longPoll ||= {}
|
|
20
22
|
# Protocol schema we should use for talking to WS server.
|
|
21
|
-
@config.longPoll.url ||= "
|
|
23
|
+
@config.longPoll.url ||= "#{@_protocol()}:#{@config.uri}"
|
|
22
24
|
# How many ms should we wait before timing out the AJAX connection?
|
|
23
25
|
@config.longPoll.timeout ||= 25000
|
|
24
26
|
# TODO - What is @_lagTime for? Can't we just use the @_timeout value?
|
|
@@ -28,6 +30,9 @@ class Firehose.LongPoll extends Firehose.Transport
|
|
|
28
30
|
@_okInterval = 0
|
|
29
31
|
@_stopRequestLoop = false
|
|
30
32
|
|
|
33
|
+
_protocol: =>
|
|
34
|
+
if @config.ssl then 'https' else 'http'
|
|
35
|
+
|
|
31
36
|
_request: =>
|
|
32
37
|
return if @_stopRequestLoop
|
|
33
38
|
# Set the Last Message Sequence in a query string.
|
data/lib/firehose/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: firehose
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2013-
|
|
15
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: eventmachine
|
|
@@ -401,12 +401,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
401
401
|
- - ! '>='
|
|
402
402
|
- !ruby/object:Gem::Version
|
|
403
403
|
version: '0'
|
|
404
|
+
segments:
|
|
405
|
+
- 0
|
|
406
|
+
hash: -3170849673077620061
|
|
404
407
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
405
408
|
none: false
|
|
406
409
|
requirements:
|
|
407
410
|
- - ! '>='
|
|
408
411
|
- !ruby/object:Gem::Version
|
|
409
412
|
version: '0'
|
|
413
|
+
segments:
|
|
414
|
+
- 0
|
|
415
|
+
hash: -3170849673077620061
|
|
410
416
|
requirements: []
|
|
411
417
|
rubyforge_project: firehose
|
|
412
418
|
rubygems_version: 1.8.23
|