Skip to content

Commit

Permalink
setup user socket
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardo-martinez committed Mar 19, 2024
1 parent a4b9bad commit da57166
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/napkin_dispenser_web/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ defmodule NapkinDispenserWeb.Endpoint do
same_site: "Lax"
]

socket "/socket", NapkinDispenserWeb.UserSocket,
websocket: [connect_info: [:peer_data]],
longpoll: false

socket "/live", Phoenix.LiveView.Socket,
websocket: [connect_info: [session: @session_options]],
longpoll: [connect_info: [session: @session_options]]
Expand Down

0 comments on commit da57166

Please sign in to comment.