Skip to content

Commit 428b650

Browse files
authored
fix: Socket config key in example (#169)
ErrorTracker.Web.Layouts uses `:live_view_socket`, but the example shows `:socket` as the key. This commit aligns the example with how it's used in the code. It looks like `:socket` is not used anywhere in the codebase and does nothing. I was able to get both longpolling and websockets working on custom paths using `:live_view_socket`.
1 parent c3ace80 commit 428b650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/error_tracker/web.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ defmodule ErrorTracker.Web do
6161
6262
```elixir
6363
config :error_tracker,
64-
socket: [
64+
live_view_socket: [
6565
path: "/my-custom-live-path"
6666
transport: :longpoll # (accepted values are :longpoll or :websocket)
6767
]

0 commit comments

Comments
 (0)