Phoenix.Channels: phx_close does not change the state of the channel::Listener
Closed this issue · 0 comments
KronicDeth commented
When a phx_close
push is sent to the socket::Listener
phoenix-channels-client/src/socket/listener.rs
Lines 981 to 991 in d9577ac
[2023-09-14T21:11:34Z DEBUG phoenix_channels_client::socket::listener] received push: Push {
topic: "channel:protected",
event_payload: EventPayload {
event: Phoenix(
Close,
),
payload: Value(
Object {},
),
},
join_reference: "ADD2C411-A58A-47A9-9BF8-315DE909ABB1",
reference: Some(
"ADD2C411-A58A-47A9-9BF8-315DE909ABB1",
),
}
it calls push_tx.send(push).await.ok()
, which the channel::Listener
receives
phoenix-channels-client/src/channel/listener.rs
Lines 151 to 155 in d9577ac
But, since the returned State
is always State::Joined
, nothing happens to show the phx_close
came to channel and should rejoin.