README.md in litecable-0.4.2 vs README.md in litecable-0.5.0
- old
+ new
@@ -94,12 +94,10 @@
require "anycable"
# Turn AnyCable compatibility mode
LiteCable.anycable!
-Anycable.configure do |config|
- config.connection_factory = MyApp::Connection
-end
+Anycable.connection_factory = MyApp::Connection
Anycable::Server.start
```
And then run this script along with your application. See [Sinatra example](https://github.com/palkan/litecable/tree/master/examples/sinatra) for more.