README.md in async-slack-0.1.0 vs README.md in async-slack-0.1.1

- old
+ new

@@ -1,11 +1,10 @@ # Async::Slack A simple asynchronous slack client implementation. -[![Build Status](https://secure.travis-ci.org/socketry/async-slack.svg)](http://travis-ci.org/socketry/async-slack) -[![Coverage Status](https://coveralls.io/repos/socketry/async-slack/badge.svg)](https://coveralls.io/r/socketry/async-slack) +[![Build Status](https://travis-ci.com/socketry/async-slack.svg?branch=master)](https://travis-ci.com/socketry/async-slack) ## Installation Add this line to your application's Gemfile: @@ -19,10 +18,24 @@ $ gem install async-slack ## Usage -... +### Real Time WebSockets + +It can use HTTP/2 WebSockets to connect to the Slack Real Time interface. + +```ruby +require "async/slack" + +Async::Slack.connect(token: token) do |client| + client.real_time.connect do |connection| + while message = connection.read + pp message + end + end +end +``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)