Skip to content

Commit dbcf9d6

Browse files
committed
Fix wrong class name in README
1 parent b0aa7b4 commit dbcf9d6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ URI uri = new URI("ws://cable.example.com");
137137
Consumer.Options options = new Consumer.Options();
138138
options.reconnection = true;
139139

140-
Consumer consumer = Cable.createConsumer(uri, options);
140+
Consumer consumer = ActionCable.createConsumer(uri, options);
141141
```
142142

143143
Below is a list of available options.
@@ -205,7 +205,7 @@ Map<String, String> headers = new HashMap();
205205
headers.put("Authorization", "Bearer xxxxxxxxxxx");
206206
options.headers = headers;
207207

208-
Consumer consumer = Cable.createConsumer(uri, options);
208+
Consumer consumer = ActionCable.createConsumer(uri, options);
209209
```
210210

211211
#### Authenticate by Query Params
@@ -217,7 +217,7 @@ Map<String, String> query = new HashMap();
217217
query.put("access_token", "xxxxxxxxxx");
218218
options.query = query;
219219

220-
Consumer consumer = Cable.createConsumer(uri, options);
220+
Consumer consumer = ActionCable.createConsumer(uri, options);
221221
```
222222

223223
#### Authenticate by Cookie
@@ -228,7 +228,7 @@ CookieManager cookieManager = new CookieManager();
228228
...
229229
options.cookieHandler = cookieManager;
230230

231-
Consumer consumer = Cable.createConsumer(uri, options);
231+
Consumer consumer = ActionCable.createConsumer(uri, options);
232232
```
233233

234234
## License

0 commit comments

Comments
 (0)