@@ -137,7 +137,7 @@ URI uri = new URI("ws://cable.example.com");
137137Consumer . Options options = new Consumer .Options ();
138138options. reconnection = true ;
139139
140- Consumer consumer = Cable . createConsumer(uri, options);
140+ Consumer consumer = ActionCable . createConsumer(uri, options);
141141```
142142
143143Below is a list of available options.
@@ -205,7 +205,7 @@ Map<String, String> headers = new HashMap();
205205headers. put(" Authorization" , " Bearer xxxxxxxxxxx" );
206206options. 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();
217217query. put(" access_token" , " xxxxxxxxxx" );
218218options. 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...
229229options. cookieHandler = cookieManager;
230230
231- Consumer consumer = Cable . createConsumer(uri, options);
231+ Consumer consumer = ActionCable . createConsumer(uri, options);
232232```
233233
234234## License
0 commit comments