docs/simple_poller_quickstart.md in hyper-mesh-0.4.0 vs docs/simple_poller_quickstart.md in hyper-mesh-0.5.0
- old
+ new
@@ -27,9 +27,14 @@
Once you have hyper-react installed then add this initializer:
```ruby
#config/initializers/synchromesh.rb
HyperMesh.configuration do |config|
config.transport = :simple_poller
+ # options
+ config.opts = {
+ seconds_between_poll: 5, # default is 0.5 you may need to increase if testing with Selenium
+ seconds_polled_data_will_be_retained: 1.hour # clears channel data after this time, default is 5 minutes
+ }
end
```
#### 5 Make sure caching is enabled