diff options
author | Sharang Dashputre <sharang.d@gmail.com> | 2019-04-01 11:57:08 +0530 |
---|---|---|
committer | Sharang Dashputre <sharang.d@gmail.com> | 2019-04-01 11:57:23 +0530 |
commit | 4f5949cf9f96938086338fe8f7af5af34cc21daa (patch) | |
tree | 8d90b3b71256e54f0ab6914b43f343d1fccc2784 /guides/source | |
parent | 43866b2ca338375b964b0b905ee20f74f9b21b22 (diff) | |
download | rails-4f5949cf9f96938086338fe8f7af5af34cc21daa.tar.gz rails-4f5949cf9f96938086338fe8f7af5af34cc21daa.tar.bz2 rails-4f5949cf9f96938086338fe8f7af5af34cc21daa.zip |
url -> URL in Action Cable guide [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/action_cable_overview.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md index 7bf6a73797..f1e2a0081f 100644 --- a/guides/source/action_cable_overview.md +++ b/guides/source/action_cable_overview.md @@ -190,15 +190,15 @@ This will ready a consumer that'll connect against `/cable` on your server by de The connection won't be established until you've also specified at least one subscription you're interested in having. -The consumer can optionally take an argument that specifies the url to connect to. This +The consumer can optionally take an argument that specifies the URL to connect to. This can be a string, or a function that returns a string that will be called when the WebSocket is opened. ```js -// Specify a different url to connect to +// Specify a different URL to connect to createConsumer('https://ws.example.com/cable') -// Use a function to dynamically generate the url +// Use a function to dynamically generate the URL createConsumer(getWebSocketURL) function getWebSocketURL { |