Sha256: bb1c6ace49084f5f1122cc6a79fa0d157a1ed9d090251a8bab8b873cbda9f4e4

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

class Firehose.Client
  constructor: (args) ->
    @transports = ['WebSocket', 'LongPoll']
    
    # Detect the first supported transport give it back 
    transport = _.detect @transports, (transport) ->
      Firehose[transport].supported()
    
    return new Firehose[transport](args)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
firehose-0.0.7 lib/assets/javascripts/firehose/client.js.coffee
firehose-0.0.6 lib/assets/javascripts/firehose/client.js.coffee
firehose-0.0.5 lib/assets/javascripts/firehose/client.js.coffee
firehose-0.0.4 lib/assets/javascripts/firehose/client.js.coffee