Skip to content

Commit

Permalink
Support close code on LP
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Jun 15, 2023
1 parent 8fadad1 commit 89ae241
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/phoenix/transports/long_poll_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 102,10 @@ defmodule Phoenix.Transports.LongPoll.Server do
state = %{state | handler: {handler, handler_state}}
{:noreply, state}

{:stop, reason, {_close_code, _msg}, handler_state} ->
state = %{state | handler: {handler, handler_state}}
{:stop, reason, state}

{:stop, reason, handler_state} ->
state = %{state | handler: {handler, handler_state}}
{:stop, reason, state}
Expand Down

0 comments on commit 89ae241

Please sign in to comment.