You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second option is to pass the server url through the `action_cable_meta_tag` in your layout.
350
-
This uses a url or path typically set via `config.action_cable.url` in the environment configuration files, or defaults to "/cable".
349
+
The second option is to pass the server URL through the `action_cable_meta_tag` in your layout.
350
+
This uses a URL or path typically set via `config.action_cable.url` in the environment configuration files, or defaults to "/cable".
351
351
352
-
This method is especially useful if your WebSocket url might change between environments. If you host your production server via https, you will need to use the wss scheme
352
+
This method is especially useful if your WebSocket URL might change between environments. If you host your production server via https, you will need to use the wss scheme
353
353
for your Action Cable server, but development might remain http and use the ws scheme. You might use localhost in development and your
354
354
domain in production.
355
355
356
-
In any case, to vary the WebSocket url between environments, add the following configuration to each environment:
356
+
In any case, to vary the WebSocket URL between environments, add the following configuration to each environment:
0 commit comments