Skip to content

Commit

Permalink
Enables longpolling. Fixes #242.
Browse files Browse the repository at this point in the history
  • Loading branch information
chasers authored and abc3 committed Dec 21, 2022
1 parent c7abdbc commit 1b36d63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/realtime_web/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule RealtimeWeb.Endpoint do
fullsweep_after: 20,
max_frame_size: 8_000_000
],
longpoll: false
longpoll: true

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

Expand Down
2 changes: 1 addition & 1 deletion test/integration/rt_channel_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule Realtime.Integration.RtChannelTest do
fullsweep_after: 20,
max_frame_size: 8_000_000
],
longpoll: false
longpoll: true
)

plug(Plug.Session, @session_config)
Expand Down

0 comments on commit 1b36d63

Please sign in to comment.