Sha256: ece910c21ceb970764057a29bdc78ced08e7c61bf050f48fe8b51f69bfb556a0

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

# deepstream-ruby
deepstream.io ruby client


### Install

```
gem install deepstream
```


### Usage
```ruby
ds = Deepstream::Client.new('localhost')

# Emit events
ds.emit 'my_event'
# or
ds.emit 'my_event', foo: 'bar', bar: 'foo'


# Subscribe to events
ds.on('some_event') do |msg|
  puts msg
end


# Get a record
foo = ds.get('foo')

# Update record
foo.bar = 'bar'
# or
foo.set('bar', 'bar')

# Set the whole record
foo.set(foo: 'foo', bar: 1, )

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deepstream-0.0.7 README.md
deepstream-0.0.6 README.md
deepstream-0.0.5 README.md
deepstream-0.0.4 README.md