README.md in rasti-web-broadcaster-1.0.0 vs README.md in rasti-web-broadcaster-1.1.0
- old
+ new
@@ -36,9 +36,12 @@
```
### Rack middleware
```ruby
use Rasti::Web::Broadcaster
+
+headers = {'Access-Control-Allow-Origin' => '*'}
+use Rasti::Web::Broadcaster, headers
```
### Publishing events from the web
```ruby
Rasti::Web::Broadcaster.publish channel_id, data: 'hello' # string or json